ixc / ixc-django-docker

Scripts and config files that make it easier to run Django projects consistently with and without Docker.
5 stars 1 forks source link

Add `manage.py` to project template. #30

Open mrmachine opened 3 years ago

mrmachine commented 3 years ago

This allows an IDD project to be run directly via ./manage.py, without using go.sh to configure the environment, and therefore works in VS Code launch configs.

The manage.py file defines the one required ixc-django-docker env var (PROJECT_DIR), and we use environs to load the .env file into os.environ in settings.

If you want the .env file to override any existing environment variables, first export ENVIRONS_OVERRIDE='true'.

This is an alternative solution to https://github.com/ixc/ic-base/pull/187