re: How to manage Local vs Dev vs Prod settings.py in latest Django RestAPI? VIEW POST

FULL DISCUSSION
 

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. 😁

code of conduct - report abuse