/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 vote169 views2 answers
- 0 vote179 views1 answer
- 0 vote169 views1 answer
- 0 vote164 views1 answer
- 2 votes248 views1 answer
- 1 vote186 views1 answer
- 0 vote175 views1 answer
- 1 vote179 views1 answer
- 18 votes195 views3 answers
- 1 vote178 views2 answers