Skip to content

Commit 6d2f066

Browse files
authored
Revert "Remove redundant static files from the project #44 (#56)" (#58)
This reverts commit 7dd9864.
1 parent 7dd9864 commit 6d2f066

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

demo/settings/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212

1313
from pathlib import Path
14+
import os
1415

1516
# # Build paths inside the project like this: BASE_DIR / 'subdir'.
1617
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -129,11 +130,11 @@
129130

130131
# Static files (CSS, JavaScript, Images)
131132
# https://docs.djangoproject.com/en/1.9/howto/static-files/
133+
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
132134
STATIC_URL = "/static/"
133-
STATIC_ROOT = BASE_DIR.parent.parent / "static"
134135

135136
# Extra places for collectstatic to find static files.
136-
STATICFILES_DIRS = [BASE_DIR / "static"]
137+
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
137138

138139

139140
# allauth settings

staticfiles/.keepme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)