/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 vote520 views1 answer
- 9 votes354 views1 answer
- 0 vote369 views1 answer
- 1 vote388 views1 answer
- 0 vote432 views1 answer
- 0 vote398 views1 answer
- 0 vote364 views1 answer
- 0 vote402 views1 answer
- 0 vote416 views1 answer
- 0 vote333 views2 answers