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 7dd9864 commit 6d2f066Copy full SHA for 6d2f066
demo/settings/common.py
@@ -11,6 +11,7 @@
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
@@ -129,11 +130,11 @@
129
130
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.
-STATICFILES_DIRS = [BASE_DIR / "static"]
137
+STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
138
139
140
# allauth settings
staticfiles/.keepme
@@ -0,0 +1 @@
1
+
0 commit comments