/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 vote408 views1 answer
- 0 vote303 views2 answers
- 1 vote284 views1 answer
- 4 votes301 views2 answers
- 0 vote291 views1 answer
- 0 vote309 views1 answer
- 1 vote327 views1 answer
- 0 vote333 views1 answer
- 5 votes303 views4 answers
- 0 vote313 views1 answer