File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 169
169
170
170
LOCALE_PATHS : list [str ] = [os .path .join (BASE_DIR , 'locale' )]
171
171
172
+ MAIN_PAGE = os .environ .get ('MAIN_PAGE' , '' )
172
173
173
174
# Static files (CSS, JavaScript, Images)
174
175
# https://docs.djangoproject.com/en/4.2/howto/static-files/
175
176
176
- STATIC_URL : str = ' /static/'
177
+ STATIC_URL : str = f' { MAIN_PAGE } /static/'
177
178
STATICFILES_DIRS : tuple [str ] = (os .path .join (BASE_DIR , 'assets' ),)
178
179
STATIC_ROOT : str = os .path .join (BASE_DIR , 'staticfiles' )
179
180
180
- MEDIA_URL : str = ' /media/'
181
+ MEDIA_URL : str = f' { MAIN_PAGE } /media/'
181
182
MEDIA_ROOT : str = os .path .join (BASE_DIR , 'media' )
182
183
183
184
184
- MAIN_PAGE = os .environ .get ('MAIN_PAGE' , '' )
185
-
186
-
187
185
# Default primary key field type
188
186
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
189
187
Original file line number Diff line number Diff line change 38
38
urlpatterns : list [URLResolver ] = [
39
39
path ('admin/' , admin .site .urls ),
40
40
path ('__debug__/' , include ('debug_toolbar.urls' )),
41
- path (settings .MAIN_PAGE , include ('signals.urls' )),
41
+ path (f' { settings .MAIN_PAGE } /' , include ('signals.urls' )),
42
42
]
43
43
44
44
urlpatterns += static (settings .MEDIA_URL , document_root = settings .MEDIA_ROOT ) # type: ignore
You can’t perform that action at this time.
0 commit comments