Open MikeTheCanuck opened 6 years ago
If one uses the quickstart script to create a new project, the original default settings.py is replaced by the example-settings.py located in the project bin folder.
Manual creation steps also mention to replace the default settings.py with this one the replacing the
For example the database vars: https://github.com/hackoregon/backend-examplar-2018/blob/staging/bin/example-settings.py#L101
as well as the staticfiles/whitenoise setup and CORS: https://github.com/hackoregon/backend-examplar-2018/blob/staging/bin/example-settings.py#L165
I did not put in any of the allowed hosts stuff yet, cause didn't know values for this year
While digging through last year's projects to understand env var usage, I got back into the
settings.py
file, which includes artifacts like:I believe these items don't come standard with a new Django app, and I'm not sure if things like the "STATIC*" variables are populated automatically when you setup whitenoise in such a project.
But we definitely have things like CORS_ORIGIN_ALLOW_ALL that we had to bake in later once we understood the CORS problem.
Or stuff like this:
I'm 99% sure that SECRET_KEY and ALLOWED_HOSTS are part of a default Django app, but our enhancements to them definitely are not.
And I'm pretty sure some of this is non-default: