skip to Main Content

Newbie needs help understanding Docker Postgres django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres" – Nginx

I am a newbie trying to follow this tutorial. https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/#postgres I succeeded in building the docker containers but got this error django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres". My question is why has authentication failed when the python and…

VIEW QUESTION

Django doesn't serve static files with NGINX + GUNICORN

Everything worked very well before gunicorn and nginx, static files were served to the website. But now, it doesn't work anymore. Settings.py STATICFILES_DIRS = [ '/root/vcrm/vcrm1/static/' ] STATIC_ROOT = os.path.join(BASE_DIR, 'vcrm/static') STATIC_URL = '/static/' MEDIA_ROOT = '/root/vcrm/vcrm1/vcrm/media/' MEDIA_URL = '/media/'…

VIEW QUESTION

Uncaught TypeError: $.ajax is not a function | Updating dropdowns based on Django model – Jquery ajax

I have a problem when trying to update my dropdown (<select> element) based on Django model triggered by another dropdown (let's call it A) change. I followed this tutorial: https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html When I change the dropdown A, I get the following…

VIEW QUESTION
Back To Top
Search