The goal of efficiency is more slack.

Friday, March 22, 2019

Django settings in wsgi.py

In wsgi.py, don't use os.environ.setdefault because another uwsgi vassal may have set the environ already. Set the dictionary directly.
os.environ['DJANGO_SETTINGS_MODULE'] = 'project_name.settings.base'

0 comments:

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Powered by Blogger.
Scroll To Top