/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 vote112 views1 answer
- 0 vote160 views1 answer
- 1 vote110 views1 answer
- 3 votes134 views3 answers
- 1 vote109 views1 answer
- 0 vote111 views1 answer
- 1 vote123 views1 answer
- 0 vote109 views2 answers
- 3 votes108 views2 answers
- 1 vote100 views1 answer