/Python/Django/Urlpatterns += static(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
Urlpatterns += static(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
Urlpatterns += static(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
2
Source: stackoverflow.com
- 0 vote248 views1 answer
- 0 vote227 views1 answer
- 1 vote243 views1 answer
- 1 vote256 views1 answer
- 0 vote239 views1 answer
- 0 vote230 views1 answer
- 0 vote226 views1 answer
- 0 vote224 views2 answers
- 1 vote279 views1 answer
- 0 vote291 views3 answers