Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manage.py to project template. #30

Open
wants to merge 1 commit into
base: tai
Choose a base branch
from
Open

Conversation

mrmachine
Copy link
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