diff options
author | 2021-03-25 08:59:37 +0200 | |
---|---|---|
committer | 2021-03-25 08:59:37 +0200 | |
commit | 358bdce0dfb78b40961810bd0781b387e00982c9 (patch) | |
tree | 4e51b7614733c0241e7367c197f29b95e8b26ec4 /manage.py | |
parent | Bump urllib3 from 1.26.2 to 1.26.3 (diff) | |
parent | Merge pull request #462 from python-discord/lemon/frontend/update_timeline (diff) |
Merge branch 'main' into dependabot/pip/urllib3-1.26.3
Diffstat (limited to 'manage.py')
-rwxr-xr-x | manage.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,6 @@ import time from typing import List import django -import gunicorn.app.wsgiapp from django.contrib.auth import get_user_model from django.core.management import call_command, execute_from_command_line @@ -156,6 +155,9 @@ class SiteManager: call_command("runserver", "0.0.0.0:8000") return + # Import gunicorn only if we aren't in debug mode. + import gunicorn.app.wsgiapp + # Patch the arguments for gunicorn sys.argv = [ "gunicorn", |