amc-corey-cox / BDC_Dashboard

My personal repository for work on the BioData Catalyst Dashboard
Apache License 2.0
4 stars 2 forks source link

Rewrite settings.py to properly handle debug vs production #49

Open amc-corey-cox opened 8 months ago

amc-corey-cox commented 8 months ago

Our settings.py does not properly handle debug/development vs production/deployment. Currently, we detect .env files or environment type and import environment variables based on these. We also use the DEBUG variable inconsistently. This results in having to manually comment or uncomment lines to get the repository ready for deployment. I'd like to have a clean and consistent method that doesn't require as much setup or manual effort.