/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 votes188 views1 answer
- 0 vote194 views1 answer
- 0 vote173 views1 answer
- 0 vote182 views1 answer
- 0 vote186 views1 answer
- 1 vote184 views1 answer
- 1 vote182 views1 answer
- 3 votes187 views1 answer
- 0 vote171 views1 answer
- 0 vote176 views1 answer