/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 vote201 views1 answer
- 0 vote206 views1 answer
- 0 vote183 views1 answer
- 0 vote204 views1 answer
- 1 vote192 views1 answer
- 1 vote350 views1 answer
- 1 vote178 views1 answer
- 3 votes198 views1 answer
- 2 votes184 views2 answers
- 1 vote208 views1 answer