faq part
This commit is contained in:
9
.env
9
.env
@@ -3,10 +3,5 @@ DEBUG=True
|
||||
SECRET_KEY="django-insecure-r616b$_bknw-2nh96gbuwe%2l-2o@g3uui747t8jz&nwp&xe_m"
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0,https://firma-plum.vercel.app/,https://promtechno.uz
|
||||
|
||||
# Database Configuration (Postgres)
|
||||
DB_ENGINE=postgresql
|
||||
DB_NAME=portfolio_admin
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=postgres
|
||||
DB_HOST=db
|
||||
DB_PORT=5432
|
||||
# Database Configuration (SQLite for local)
|
||||
DB_ENGINE=sqlite3
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.8 on 2026-01-14 09:40
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('content', '0002_rename_name_product_name_ru_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='FAQ',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('question_uz', models.CharField(max_length=255)),
|
||||
('question_ru', models.CharField(max_length=255)),
|
||||
('answer_uz', models.TextField()),
|
||||
('answer_ru', models.TextField()),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='description_ru',
|
||||
field=models.TextField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='description_uz',
|
||||
field=models.TextField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
@@ -12,7 +12,7 @@ class ProductSerializer(serializers.ModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = Product
|
||||
fields = ['id', 'name_uz', 'name_ru', 'image', 'description_uz', 'description_ru', 'features']
|
||||
fields = ['id', 'name_uz', 'name_ru', 'description_uz', 'description_ru', 'features']
|
||||
|
||||
|
||||
class ContactSerializer(serializers.ModelSerializer):
|
||||
|
||||
Reference in New Issue
Block a user