/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 vote184 views1 answer
- 14 votes184 views6 answers
- -1 vote154 views1 answer
- 0 vote157 views1 answer
- 0 vote227 views1 answer
- 0 vote157 views1 answer
- 0 vote161 views1 answer
- 0 vote175 views1 answer
- 2 votes166 views2 answers
- 1 vote146 views1 answer