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

Split up Django Settings into DEV and PROD #21

Open
lili2311 opened this issue May 26, 2016 · 1 comment
Open

Split up Django Settings into DEV and PROD #21

lili2311 opened this issue May 26, 2016 · 1 comment

Comments

@lili2311
Copy link
Member

lili2311 commented May 26, 2016

Description

To ensure better logging and custom setting for DEV and PROD environments we can split up django settings and setup proper logging.

  1. Create a new settings folder in the london_cafes app folder
  2. Make this folder a python module by creating a __init__.py file in the settings folder
  3. Move all the DEV and PROD common settings into the __init__.py
  4. Add dev specific setting into a development.py
  5. 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)
  6. Set 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

  1. A new settings folder is created
  2. Settings are split up into dev and proc specific settings.
@denesnori denesnori self-assigned this Jun 6, 2016
@lili2311
Copy link
Member Author

@denesnori I am going to unassing you but if you are keen to work on this in the next 4 weeks please ping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants