/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
- 8 votes159 views1 answer
- 2 votes165 views2 answers
- 12 votes146 views2 answers
- 3 votes144 views2 answers
- 0 vote110 views2 answers
- 1 vote190 views2 answers
- 2 votes139 views2 answers
- 0 vote149 views1 answer
- 6 votes152 views1 answer
- 0 vote168 views1 answer