Proposed modernization and simplification #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I propose we get the project template back in working shape and get use out of it once again.
As a start I have done the following:
Additionally, I have addressed something I am often annoyed by in our current setup:
I have introduced a module
settings_dev.py
. This contains all generalized configuration specifically meant for development.settings_local.py
wildcard imports it.If the file exists, settings_local should still be the value of
DJANGO_SETTINGS_MODULE
, though it doesn't have to exist (settings_dev should be sufficient to setup Django for runserver).settings_local contains all the development configuration specific to you personally. This should prevent the frequent issue of individual developers' untracked settings_local filling with necessary configuration, and then that configuration not making its way back into the settings_local.example.py to serve as a reference to others. Even if it does make it into the example file, other developers must be aware that they should always be looking at the example file for new settings. This is burdensome.
Also relating to settings modules, I have included
settings_live.py
. This module simply contains the base configuration for all sites that should live on the public internet and contains configuration relating to SSL and other non-debug settings. Separatesettings_staging.py
andsettings_production.py
modules import it.Let me know your thoughts and feel free to review and/or add to this proposal.