/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
- 3 votes259 views1 answer
- 0 vote234 views1 answer
- 2 votes243 views3 answers
- 8 votes302 views2 answers
- 0 vote243 views1 answer
- 0 vote224 views1 answer
- 1 vote264 views2 answers
- 0 vote240 views1 answer
- 0 vote277 views1 answer
- 0 vote260 views1 answer