/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 vote261 views1 answer
- 5 votes229 views4 answers
- 6 votes250 views3 answers
- 0 vote247 views1 answer
- 0 vote230 views1 answer
- 3 votes175 views2 answers
- 0 vote251 views2 answers
- 11 votes256 views6 answers
- 1 vote252 views1 answer
- 0 vote223 views2 answers