Skip to main content

All Questions

0 votes
0 answers
56 views

Django cannot connect to database in container

I have created docker-compose file version: "3" services: web: build: . command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000" ...
Elnur Alikhanov's user avatar
2 votes
3 answers
506 views

After switching to postgresql - connection reset by peer

According to this tutorial I switched to postgresql code. # django_project/settings.py DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", ...
xralf's user avatar
  • 3,342
-1 votes
1 answer
53 views

Troubling while deploying my Django app on render with dockerized database

I am having trouble while deploying my Django application on render. I used the render Postgres database which expired and deleted. So, that's why I am trying to use a dockerized database so that it ...
rakin235's user avatar
  • 101
-1 votes
1 answer
64 views

How to keep datas remain after switch to deocker for deployment(Wagtail into an existing Django project)

let me clear what is going on....... am working on wagtail project which is comes from ff this steps: -How to add Wagtail into an existing Django project(https://docs.wagtail.org/en/stable/...
Thehiddenguy's user avatar
0 votes
0 answers
34 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
0 answers
44 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,395
-1 votes
1 answer
20 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
1 answer
100 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
107 views

Celery can't connect to Postgres Django

Celery can't connect to Postgres Django The problem is that the Celery container cannot connect to the Postgres database when it starts executing a task. What could be the problem? When sending a task,...
user avatar
0 votes
1 answer
194 views

'Failed to establish a new connection: [Errno 111] Connection refused'

I am trying to run a django application with a postgres db on docker-compose. I can run it perfectly but as soon as I do a post request, I get this error: FAILED tests/test_email.py::TestUser::...
Carlos Gomez's user avatar
0 votes
1 answer
219 views

Trouble Connecting Django Application to PostgreSQL Database Running in Docker Container

I'm currently working on a Django project where I'm using a virtual environment (venv) to run Django locally on my machine (Windows). Additionally, I have a PostgreSQL database running in a Docker ...
user23705833's user avatar
0 votes
1 answer
48 views

Cannot access Django project homepage (Docker)

I'm building an app with Django, but although my app runs fine (at least, it's what CLI tells me) I can´t access it via browser. The docker-compose build and up works just fine, I get this output: ...
Matheus Tenório's user avatar
0 votes
1 answer
123 views

'ProgrammingError: column does not exist' in Django

I've been moving development of my website over to using Docker. I replaced sqlite as my database with postgresql then ran the command docker-compose exec web python manage.py migrate in my Docker ...
tthheemmaannii's user avatar
0 votes
1 answer
59 views

My postgresql database doesn't persist between docker runs

I am learning docker and postgresql and I have problem with persisting data between the re-runs of the app. My docker-compose.yml: version: '3.7' services: web: build: . command: python3 /...
Swantewit's user avatar
  • 1,076
0 votes
1 answer
162 views

Could not translate host name "db" to address: Name or service not known

I'm using Django + Docker and when building the image of one of my projects I'm facing problems when running the command: docker-compose run web python manage.py makemigrations error: root@debian:/...
Hian's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
16