#### Category : django

I’m trying to follow this, but I’m finding some issues. My folder structure is a follows: — project — config/nginx/conf.d — www — server — settings.py, wsgi.py, etc. — Dockerfile — manage.py — requirements.txt — docker-compose.yml — Dockerfile The most relevant files are as follows: Dockerfile FROM python:3 # Make the Python output not buffered; logs will show in real ..

I’d like to find out what is haunting my dockerized Django, Postgres, Gunicorn, Nginx project. /etc/nginx/html/index.html" is not found nginx | 2021/10/27 15:40:34 [error] 22#22: *2 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 172.29.0.1, server: , request: "GET / HTTP/1.1", host: "0.0.0.0:8000" nginx | 172.29.0.1 – – [27/Oct/2021:15:40:34 +0000] "GET / ..

I’m trying to deploy a small Django app, that creates its own db.sqlite3 database, in a Kubernetes pod. When doing so without a persistent volume to save the db.sqlite3, it works fine but when trying to save it in a persistent volume, the pod outputs django.db.utils.OperationalError: unable to open database file The first problem I ..

Why my react build folder doesn’t serve after run python manage.py collectstatic command in Dockerfile? I have tried for a long time to dockerized my whole project but I did fail to collect static files. Where I miss please have a look into it. ***This is my backend/Dockerfile inside django project *** FROM python:3.9.5-slim ENV ..

I get the following error while I try to run my django project on docker. relation "DBTable" does not exist at character 218 I figured out it was because the migrations weren’t being applied. So I changed my Dockerfile as follows to make migrations before starting the server: FROM python:3.7 WORKDIR /ServerCode2/ COPY . /ServerCode2/ ..

I have read too many articless but I still haven’t found a solution for my problem. I have a Django model with an ImageField on it image = models.ImageField(upload_to=’products/%Y/%m/%d’) All I need to do is save image from my warehouse the already existing image file path with the ImageField I have code bellow this script ..

I want to create 2 environments. Test and the standard dev environment. I need to run the django test server within test environment and the regular server, manage.py runserver on the other. The main dev environemnt will use the docker-compse.yml and the test environment will use test.yml. When I run docker-compose up, live-reload works normally. ..