aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-07-18 10:59:54 +0530
committerBobby <[email protected]>2022-07-18 10:59:54 +0530
commitd86dc34804fd9c7710dff395d32797cff689555f (patch)
tree4c2b647ac0122a9a2ca4a9f9695e371098396749
parent450c9a65cd3490eabf6a4b2a9efaa92fb1284080 (diff)
downloadthatcomputerscientist-d86dc34804fd9c7710dff395d32797cff689555f.tar.xz
thatcomputerscientist-d86dc34804fd9c7710dff395d32797cff689555f.zip
Change static root to fix 404 errors
-rw-r--r--thatcomputerscientist/settings.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py
index 7a04e338..9d788d5e 100644
--- a/thatcomputerscientist/settings.py
+++ b/thatcomputerscientist/settings.py
@@ -134,5 +134,4 @@ STATIC_URL = 'static/'
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
-PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
-STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
+STATIC_ROOT = os.path.join(BASE_DIR, 'static')