From: David Kerkeslager Date: Tue, 1 Mar 2022 20:32:53 +0000 (-0500) Subject: Set up static file location X-Git-Url: https://code.kerkeslager.com/?p=climbing.kerkeslager.com;a=commitdiff_plain;h=656cb0603ab3b1f8121590f612895082bae8f3d6 Set up static file location --- diff --git a/.gitignore b/.gitignore index e5f1c9e..8625ecd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env/ __pycache__/ db.sqlite3 +static/ diff --git a/src/core/settings.py b/src/core/settings.py index e2c5b2f..541e767 100644 --- a/src/core/settings.py +++ b/src/core/settings.py @@ -116,6 +116,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/4.0/howto/static-files/ STATIC_URL = 'static/' +STATIC_ROOT = Path(BASE_DIR.parent, 'static/') # Default primary key field type # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field