diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7bfadbc --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +# .gitignore + +# Python +__pycache__/ +*.py[cod] +*.pyo +*.pyd +*.so +*.log +*.egg-info/ +dist/ +build/ + +# Django +*.sqlite3 +*.db +*.db.sql + +# Environment files +.env + +# IDEs +.idea/ +.vscode/ +*.swp +*.swo +*.swn + +# OS generated files +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0ae434f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Dockerfile +# Pull the base image +FROM python:3.10 + +# Set environment variables +ENV PYTHONDONTWRITEBYTECODE 1 +ENV PYTHONUNBUFFERED 1 + +# Set work directory +WORKDIR /code + +# Install dependencies +COPY requirements.txt /code/ +RUN pip install -r requirements.txt + +# Copy project +COPY . /code/ + +# Run migrations +RUN python manage.py makemigrations +RUN python manage.py migrate \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..549b04b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +# docker-compose.yml +version: '3.8' + +services: + web: + build: . + command: python manage.py runserver 0.0.0.0:${PORT} + volumes: + - .:/code + ports: + - ${PORT}:${PORT} + env_file: + - .env \ No newline at end of file diff --git a/main/templates/main/product/detail.html b/main/templates/main/product/detail.html index 2a07e99..ca37263 100644 --- a/main/templates/main/product/detail.html +++ b/main/templates/main/product/detail.html @@ -70,7 +70,7 @@
{{ product.name }}
-

{{ product.description }}

+

{{ product.description }}

{{ product.price }}₸

@@ -94,7 +94,11 @@

{{ product.name }}

+<<<<<<< HEAD

{{ product.price }}₸

+======= +

₸{{ product.price }}

+>>>>>>> 28b575b35ad3c9232ec053f2e1a0421dfcd41952

{{ product.description|linebreaks }}

Вернуться на главную @@ -124,8 +128,7 @@ margin-bottom: 19px; } .description { - font-size: 800px !important; - color: white !important; /* Замените #yourDesiredColor на желаемый цвет */ + color: white !important; }