added descriptions

This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-12-22 13:06:28 +05:00
parent 991c0721e2
commit 308365630d
6 changed files with 8 additions and 4 deletions

4
.env
View File

@@ -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

View File

@@ -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) ========

View File

@@ -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
View File