From 656cb0603ab3b1f8121590f612895082bae8f3d6 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Tue, 1 Mar 2022 15:32:53 -0500 Subject: [PATCH] Set up static file location --- .gitignore | 1 + src/core/settings.py | 1 + 2 files changed, 2 insertions(+) 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 -- 2.20.1