added descriptions
This commit is contained in:
4
.env
4
.env
@@ -1,7 +1,7 @@
|
||||
# Local Development Environment
|
||||
DEBUG=True
|
||||
SECRET_KEY=django-insecure-r616b$_bknw-2nh96gbuwe%2l-2o@g3uui747t8jz&nwp&xe_m
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||
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/,
|
||||
|
||||
# Database Configuration (Postgres)
|
||||
DB_ENGINE=postgresql
|
||||
|
||||
Binary file not shown.
@@ -6,8 +6,12 @@ class Product(models.Model):
|
||||
name_ru = models.CharField(max_length=255)
|
||||
image = models.ImageField(upload_to='products/')
|
||||
|
||||
# Description (uz & ru)
|
||||
description_uz = models.TextField(blank=True, null=True)
|
||||
description_ru = models.TextField(blank=True, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name_uz
|
||||
return f"{self.name_uz} / {self.name_ru}"
|
||||
|
||||
|
||||
# ======== PRODUCT FEATURES (KEY-VALUE) ========
|
||||
|
||||
Binary file not shown.
@@ -27,7 +27,7 @@ http {
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
proxy_pass http://web:8000;
|
||||
proxy_pass http://web:8001;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
|
||||
0
resources/scripts/entrypoint.sh
Normal file → Executable file
0
resources/scripts/entrypoint.sh
Normal file → Executable file
Reference in New Issue
Block a user