Skip to content

Commit 60ff401

Browse files
committedApr 2, 2022
use static root
1 parent 935ff40 commit 60ff401

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
env/
22
__pycache__
33
migrations/
4-
test/
4+
test/
5+
staticfiles/

‎core/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
# Static files (CSS, JavaScript, Images)
121121
# https://docs.djangoproject.com/en/3.2/howto/static-files/
122122

123+
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
123124
STATIC_URL = '/static/'
124125

125126
STATICFILES_DIRS = [

0 commit comments

Comments
 (0)