We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4078b21 commit 7dd9864Copy full SHA for 7dd9864
demo/settings/common.py
@@ -11,7 +11,6 @@
11
"""
12
13
from pathlib import Path
14
-import os
15
16
# # Build paths inside the project like this: BASE_DIR / 'subdir'.
17
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -130,11 +129,11 @@
130
129
131
# Static files (CSS, JavaScript, Images)
132
# https://docs.djangoproject.com/en/1.9/howto/static-files/
133
-STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
134
STATIC_URL = "/static/"
+STATIC_ROOT = BASE_DIR.parent.parent / "static"
135
136
# Extra places for collectstatic to find static files.
137
-STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
+STATICFILES_DIRS = [BASE_DIR / "static"]
138
139
140
# allauth settings
staticfiles/.keepme
0 commit comments