diff options
author | 2021-08-31 01:19:41 +0100 | |
---|---|---|
committer | 2021-08-31 01:19:41 +0100 | |
commit | 3699245dc7ad2f156554d1ac4e3a85095522c8d6 (patch) | |
tree | 310214fcd9af0aaa7f0112d086b2cfc54ceee2b5 /manage.py | |
parent | Merge branch 'master' into subdomains-to-query-paths (diff) | |
parent | Merge pull request #568 from python-discord/jb3/collectstatic-build (diff) |
Merge branch 'main' into subdomains-to-query-paths
Diffstat (limited to 'manage.py')
-rwxr-xr-x | manage.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -138,10 +138,17 @@ class SiteManager: 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: + # In Production, collectstatic is ran in the Docker image + print("Collecting static files.") + call_command( + "collectstatic", + interactive=False, + clear=True, + verbosity=self.verbosity - 1 + ) + self.set_dev_site_name() self.create_superuser() |