/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 vote144 views1 answer
- 0 vote149 views1 answer
- 1 vote155 views1 answer
- 1 vote150 views1 answer
- 11 votes159 views3 answers
- 0 vote146 views1 answer
- 0 vote182 views1 answer
- 0 vote201 views1 answer
- 1 vote137 views1 answer
- 0 vote148 views2 answers