/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
- -1 vote261 views3 answers
- 0 vote234 views1 answer
- 0 vote238 views1 answer
- -1 vote226 views1 answer
- 1 vote251 views1 answer
- 1 vote174 views1 answer
- 0 vote236 views1 answer
- 0 vote207 views1 answer
- 0 vote240 views1 answer
- 10 votes238 views1 answer