/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 vote318 views1 answer
- 0 vote404 views1 answer
- 0 vote343 views1 answer
- 6 votes342 views1 answer
- 0 vote371 views1 answer
- -1 vote382 views3 answers
- 2 votes319 views1 answer
- 0 vote328 views1 answer
- 0 vote359 views1 answer
- 0 vote378 views1 answer