/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 vote170 views3 answers
- 1 vote152 views2 answers
- -1 vote150 views2 answers
- 1 vote170 views1 answer
- 0 vote183 views1 answer
- 4 votes151 views2 answers
- 0 vote160 views1 answer
- 0 vote148 views1 answer
- 0 vote156 views1 answer
- 0 vote142 views1 answer