How to separate your settings.py file for different environments in Django projects.
How to separate your settings.py file for different environments in Django projects.
This is another practice that I like to implement in my Django projects, it is a safe way to have many apps and customized variables according your project environments (local development, testing, integration, production, etc).
Step 1: Create a directory inside your project folder named settings, and create a __init__.py file inside it.
- manage.py - your_project -- settings --- __init__.py --…
View On WordPress















