File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 5
5
* .tmp
6
6
* .egg-info
7
7
static /
8
+ ! pems /static
8
9
__pycache__ /
9
10
.coverage
10
11
.DS_Store
Original file line number Diff line number Diff line change @@ -113,10 +113,25 @@ def _filter_empty(ls):
113
113
# Static files (CSS, JavaScript, Images)
114
114
# https://docs.djangoproject.com/en/5.1/howto/static-files/
115
115
116
- STATIC_URL = "static/"
116
+ STATIC_URL = "/static/"
117
+
118
+ STATICFILES_DIRS = [os .path .join (BASE_DIR , "pems" , "static" )]
119
+
120
+ # use Manifest Static Files Storage by default
121
+ STORAGES = {
122
+ "default" : {
123
+ "BACKEND" : "django.core.files.storage.FileSystemStorage" ,
124
+ },
125
+ "staticfiles" : {
126
+ "BACKEND" : os .environ .get (
127
+ "DJANGO_STATICFILES_STORAGE" , "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
128
+ )
129
+ },
130
+ }
117
131
118
132
STATIC_ROOT = os .path .join (BASE_DIR , "static" )
119
133
134
+
120
135
# Default primary key field type
121
136
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
122
137
You can’t perform that action at this time.
0 commit comments