/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
- 2 votes142 views2 answers
- 0 vote126 views1 answer
- 0 vote139 views1 answer
- 0 vote146 views1 answer
- 0 vote120 views1 answer
- 0 vote144 views1 answer
- 1 vote163 views1 answer
- 1 vote136 views2 answers
- 0 vote142 views1 answer
- 2 votes133 views2 answers