From 0ede2a3a84010ec2cd732124f5c8f23d8063e1ec Mon Sep 17 00:00:00 2001 From: JohnYan <84345999@qq.com> Date: Fri, 11 Dec 2020 19:43:12 +0800 Subject: [PATCH] fix static file issue --- .gitignore | 2 ++ django_smartchart/settings.py | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..39155b9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Project exclude paths +/venv/ \ No newline at end of file diff --git a/django_smartchart/settings.py b/django_smartchart/settings.py index 5ed8098..fe6b5e9 100644 --- a/django_smartchart/settings.py +++ b/django_smartchart/settings.py @@ -120,3 +120,7 @@ USE_TZ = False # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' + +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, "static"), +] \ No newline at end of file