Created
April 1, 2019 12:53
-
-
Save DrMartiner/2d78c4c93f1dfbaee95eee8a9a76a131 to your computer and use it in GitHub Desktop.
Share static via Django server with DEBUG=False
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.urls import url | |
from django.contrib.staticfiles import views | |
urlpatterns = [ | |
url(r'^static/(?P<path>.*)$', views.serve, {'insecure': True}), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment