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

View File

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

View File

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