Skip to content

Commit

Permalink
fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace committed Nov 28, 2023
1 parent 70f9477 commit 04062aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions splashcat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@

database_url = os.environ.get("DATABASE_URL")

if database_url is None:
if database_url is None or (len(sys.argv) > 1 and sys.argv[1] == 'collectstatic'):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
elif len(sys.argv) > 1 and sys.argv[1] != 'collectstatic':
else:
database_connection_details = dj_database_url.parse(database_url, conn_max_age=None, conn_health_checks=False)

if FLY_REGION != FLY_PRIMARY_REGION:
Expand Down

0 comments on commit 04062aa

Please sign in to comment.