/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
- 1 vote102 views1 answer
- 4 votes108 views1 answer
- 8 votes113 views2 answers
- 0 vote150 views2 answers
- 2 votes115 views1 answer
- 3 votes125 views2 answers
- 0 vote139 views1 answer
- 0 vote120 views1 answer
- 0 vote112 views1 answer
- 0 vote153 views1 answer