From a7738b71261d12b6252c8a29cdcff3a50ec4e662 Mon Sep 17 00:00:00 2001 From: Saptarshi Chatterjee Date: Thu, 10 May 2018 23:56:05 -0500 Subject: [PATCH] Static assets are not getting loaded | #5 Fix --- mysite/sample_settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mysite/sample_settings.py b/mysite/sample_settings.py index f3fa283..bc83a52 100644 --- a/mysite/sample_settings.py +++ b/mysite/sample_settings.py @@ -108,6 +108,8 @@ STATIC_URL = '/static/' -STATICFILES_DIRS = [ - "", -] +SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) +STATICFILES_DIRS = ( + os.path.join(SITE_ROOT, 'static/'), +) +