added descriptions
This commit is contained in:
4
.env
4
.env
@@ -1,7 +1,7 @@
|
|||||||
# Local Development Environment
|
# Local Development Environment
|
||||||
DEBUG=True
|
DEBUG=True
|
||||||
SECRET_KEY=django-insecure-r616b$_bknw-2nh96gbuwe%2l-2o@g3uui747t8jz&nwp&xe_m
|
SECRET_KEY="django-insecure-r616b$_bknw-2nh96gbuwe%2l-2o@g3uui747t8jz&nwp&xe_m"
|
||||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0,https://firma-plum.vercel.app/,
|
||||||
|
|
||||||
# Database Configuration (Postgres)
|
# Database Configuration (Postgres)
|
||||||
DB_ENGINE=postgresql
|
DB_ENGINE=postgresql
|
||||||
|
|||||||
Binary file not shown.
@@ -5,9 +5,13 @@ class Product(models.Model):
|
|||||||
name_uz = models.CharField(max_length=255)
|
name_uz = models.CharField(max_length=255)
|
||||||
name_ru = models.CharField(max_length=255)
|
name_ru = models.CharField(max_length=255)
|
||||||
image = models.ImageField(upload_to='products/')
|
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):
|
def __str__(self):
|
||||||
return self.name_uz
|
return f"{self.name_uz} / {self.name_ru}"
|
||||||
|
|
||||||
|
|
||||||
# ======== PRODUCT FEATURES (KEY-VALUE) ========
|
# ======== PRODUCT FEATURES (KEY-VALUE) ========
|
||||||
|
|||||||
Binary file not shown.
@@ -27,7 +27,7 @@ http {
|
|||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://web:8000;
|
proxy_pass http://web:8001;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
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