/Python/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 votes79 views1 answer
- 5 votes112 views3 answers
- 1 vote146 views1 answer
- 0 vote131 views1 answer
- -1 vote122 views1 answer
- 4 votes95 views2 answers
- 0 vote89 views1 answer
- 0 vote99 views1 answer
- 0 vote101 views4 answers
- 0 vote102 views1 answer