/basic-django-and-postgresql-app

Simple dockerized django - postgresql application.

Primary LanguagePython

Django and Postgresql (pgadmin also) with Docker

Simple dockerized django application with postgresql db.

ref: https://docs.docker.com/compose/django/#create-a-django-project

If you follow the link above, don't forget to change python version in Dockerfile. Otherwise you will get SyntaxError: Generator expression must be parenthezised / python manage.py migrate error.

solution ref: https://stackoverflow.com/questions/48822571/syntaxerror-generator-expression-must-be-parenthezised-python-manage-py-migra

Start project in local

  • docker-compose build
  • docker-compose up

After starting the containers; if you want to connect to pgadmin interface, please nagivate to http://0.0.0.0:5050 in your browser. You can find login informations in env/dev.env file.

then add new server to access project's db;