DEV Community

Discussion on: How to manage Local vs Dev vs Prod settings.py in latest Django RestAPI?

Collapse
 
jacksonelfers profile image
Jackson Elfers

Not an avid django/python user but maybe consider keeping local, dev and prod in .env files and passing the variables into the settings.py file. That way any sensitive info is kept consistently in key value pair files and can be easily swapped. Might be inaccurately prescribed, it comes from node.js tinkering. Best of luck. 😁