/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
- 4 votes229 views4 answers
- 19 votes268 views6 answers
- 2 votes235 views1 answer
- -4 votes227 views5 answers
- 0 vote254 views1 answer
- 0 vote256 views2 answers
- 0 vote251 views1 answer
- 1 vote230 views3 answers
- 0 vote260 views1 answer
- 2 votes239 views1 answer