Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
11 views

I can't open server in 0.0.0.0 instead it is working in 127.0.0.1 in while using Docker , Django and Postgres [duplicate]

I am a newbie to this. settings.py file is: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'postgres', 'USER': 'postgres', 'PASSWORD':...
menpj's user avatar
  • 9
0 votes
2 answers
22 views

Configuring two different django-cookie-cutter generated projects to run on the same server

How can i run two different django-cookie-cutter generated projects on the same server. The projects are generated using Docker. I guess we should change the ports to avoid collisons. But as there are ...
Eric Acevedo's user avatar
  • 1,212
0 votes
0 answers
25 views

i want to deploy a djago project, using gitlab cicd. but i see "module not found error".but the path seems to be set correclty

I am currently working on a django project and need to deploy this to the server. I use gitlab for ci/cd purpose. for requests, i use the gunicorn and the nginx. i dockerized the nginx and the '...
Mohammad's user avatar
0 votes
0 answers
14 views

When using the command docker-compose exec web python core/manage.py makemigration accountss I see the error "No module named 'accounts"

When using the command docker-compose exec web python core/manage.py makemigration accountss I see the error ModuleNotFoundError: No module named 'accounts' INSTALLED_APPS: enter image description ...
Mohsen Kordestani's user avatar
0 votes
0 answers
34 views

How can I configure Django to search for the Redis backend on the server instead of localhost?

I am working on updating an old Django 2.2 app, and am running into an issue with the connections between Celery, Django, Docker, and Redis. I am using Docker Compose to build the app, and using ...
Kristian Kolehmainen's user avatar
0 votes
1 answer
23 views

Docker-compose is able to compile program but is unable to open link to Local host

I have a basic Django project that I have put into a docker container. Currently I have it running on https locally just for the development phase because it is a requirement. When I run my program ...
user124e's user avatar
-1 votes
0 answers
23 views

if my application is running with docker compose how can I access localhost of within that application

I have a django application which runs through docker compose on my local system on localhost:80. I have another application which runs at localhost:3000. I want to access http://localhost:3000 within ...
Always_a_learner's user avatar
0 votes
1 answer
104 views

Coolify Django Deployment

I'm using Coolify and I want to deploy a Django application. I created an entrypoint.sh #!/bin/sh set -e echo "Running migrations..." python manage.py migrate echo "Collecting static ...
omkobass's user avatar
  • 286
0 votes
0 answers
32 views

How do we separate django project into multiple docker containers

I have a django project right now that allows users to login and register an account. Sort of like a blog. All the views are separated and have their own static html file. The project works running ...
user124e's user avatar
0 votes
0 answers
35 views

Multiple docker services with their own databases for Django seem to be cross-connecting

EDIT: Somehow this seems to have resolved itself in that Django is now correctly resolving a host of "db_service1", which removes any ambiguity. I have no idea why this did not work ...
michjnich's user avatar
  • 3,215
-1 votes
1 answer
18 views

Django,Docker caching previsouly setup email in he settings.py

I have changed my backend email when I run in docker compose it uses the previous email thus an error but when i run in manage.py runserver mode there is no error. I want when i run in docker mode ...
David Amugune's user avatar
0 votes
0 answers
16 views

Deploying Django Rest Framework Based Microservices That Communicate with Token Authentication

I am developing a docker based application. The application has two components. A core component (CORE) and an interface component (INTERFACE). The world communicates with the INTERFACE component. The ...
Ahmad Mustapha's user avatar
0 votes
1 answer
58 views

Getting ConnectionError while running elastic search using docker in django project

I want to run elasticsearch using docker. It works fine when I only add code to run elastic search in docker-compose.yml file, but I am getting: Connection error caused by: ConnectionError(Connection ...
Sampurna's user avatar
0 votes
0 answers
26 views

Django Best practices: migration & contenarization [duplicate]

I am working on a Django API and I'd like to add a bit of CI/CD to it. It dockerize my app with FROM python:3.12 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements....
Cédric Leroy's user avatar
0 votes
1 answer
55 views

Is there an option to use nginx instead of traefik?

The "Select a front-end web server/proxy to use" option seems to be gone. I'm using cookiecutter-django's docker compose setup. I'd rather use nginx (a more familiar technology without the ...
lanadelrey's user avatar

15 30 50 per page
1
2 3 4 5
88