From d86dc34804fd9c7710dff395d32797cff689555f Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 18 Jul 2022 10:59:54 +0530 Subject: Change static root to fix 404 errors --- thatcomputerscientist/settings.py | 3 +-- 1 file changed, 1 insertion(+), 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') -- cgit v1.2.3