uwsgi: set DJANGO_SETTINGS_MODULE in environment (#87539)
gitea/docbow/pipeline/head This commit looks good
Details
gitea/docbow/pipeline/head This commit looks good
Details
This commit is contained in:
parent
8ba4e8a8f4
commit
6357511ad2
|
@ -13,6 +13,11 @@ middleware here, or combine a Django application with an application of another
|
||||||
framework.
|
framework.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'docbow_project.settings')
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
|
Loading…
Reference in New Issue