Skip to content

Add manage.py to project template.#30

Open
mrmachine wants to merge 1 commit into
taifrom
187-alt-manage-py
Open

Add manage.py to project template.#30
mrmachine wants to merge 1 commit into
taifrom
187-alt-manage-py

Conversation

@mrmachine
Copy link
Copy Markdown
Collaborator

@mrmachine mrmachine commented Nov 18, 2020

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

@mrmachine mrmachine changed the base branch from master to tai November 18, 2020 23:01
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'`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant