uwsgi: set DJANGO_SETTINGS_MODULE in environment (#87539)
gitea/docbow/pipeline/head This commit looks good Details

This commit is contained in:
Emmanuel Cazenave 2024-02-27 17:16:14 +01:00
parent 8ba4e8a8f4
commit 6357511ad2
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,11 @@ middleware here, or combine a Django application with an application of another
framework.
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'docbow_project.settings')
application = get_wsgi_application()