]> code.kerkeslager.com Git - climbing.kerkeslager.com/commitdiff
Set up static file location
authorDavid Kerkeslager <kerkeslager@gmail.com>
Tue, 1 Mar 2022 20:32:53 +0000 (15:32 -0500)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Tue, 1 Mar 2022 20:32:53 +0000 (15:32 -0500)
.gitignore
src/core/settings.py

index e5f1c9ee653dede545f4b3475ad3f82de2ae8fc4..8625ecd80d12aa29261fddd9b1bf711a9761158a 100644 (file)
@@ -1,3 +1,4 @@
 .env/
 __pycache__/
 db.sqlite3
+static/
index e2c5b2f86bb3f0fdaa8e5173b4db9e9dfa766f29..541e767c3fe64d24604a0ba88121691e37bd9441 100644 (file)
@@ -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