/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 vote269 views1 answer
- 0 vote254 views1 answer
- 0 vote252 views1 answer
- 0 vote270 views1 answer
- 0 vote262 views1 answer
- 0 vote279 views1 answer
- 0 vote240 views1 answer
- 1 vote267 views1 answer
- 4 votes241 views2 answers
- 0 vote271 views1 answer