/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 vote165 views1 answer
- 0 vote175 views1 answer
- 0 vote160 views1 answer
- -1 vote181 views1 answer
- 0 vote172 views1 answer
- 0 vote169 views1 answer
- 30 votes273 views6 answers
- 0 vote160 views1 answer
- 0 vote192 views2 answers
- 0 vote121 views2 answers