aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
Diffstat (limited to 'manage.py')
-rwxr-xr-xmanage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/manage.py b/manage.py
index 44435de5..a1057a17 100755
--- a/manage.py
+++ b/manage.py
@@ -119,13 +119,15 @@ class SiteManager:
if self.debug:
self.wait_for_postgres()
- self.create_superuser()
print("Applying migrations.")
call_command("migrate", verbosity=self.verbosity)
print("Collecting static files.")
call_command("collectstatic", interactive=False, clear=True, verbosity=self.verbosity)
+ if self.debug:
+ self.create_superuser()
+
def run_server(self) -> None:
"""Prepare and run the web server."""
in_reloader = os.environ.get('RUN_MAIN') == 'true'