You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure better logging and custom setting for DEV and PROD environments we can split up django settings and setup proper logging.
Create a new settings folder in the london_cafes app folder
Make this folder a python module by creating a __init__.py file in the settings folder
Move all the DEV and PROD common settings into the __init__.py
Add dev specific setting into a development.py
Add proc specific settings into production.py (do not commit a key here it is secret and should be an environment variable which can be set in Heroku later on)
Set manage.py to call dev settings (this will be overridden in Prod by setting the env variable in Heroku)
Description
To ensure better logging and custom setting for DEV and PROD environments we can split up django settings and setup proper logging.
settings
folder in thelondon_cafes
app folder__init__.py
file in thesettings
folder__init__.py
development.py
production.py
(do not commit a key here it is secret and should be an environment variable which can be set in Heroku later on)manage.py
to call dev settings (this will be overridden in Prod by setting the env variable in Heroku)Logging to be added in a separate issue/pr.
Example of the settings split up can be seen here
Desired Outcome
settings
folder is createdThe text was updated successfully, but these errors were encountered: