Skip to content

Commit 7dd9864

Browse files
authored
Remove redundant static files from the project #44 (#56)
1 parent 4078b21 commit 7dd9864

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

demo/settings/common.py

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

1313
from pathlib import Path
14-
import os
1514

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

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

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

139138

140139
# allauth settings

staticfiles/.keepme

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)