Skip to content

Instantly share code, notes, and snippets.

@DrMartiner
Created April 1, 2019 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrMartiner/2d78c4c93f1dfbaee95eee8a9a76a131 to your computer and use it in GitHub Desktop.
Save DrMartiner/2d78c4c93f1dfbaee95eee8a9a76a131 to your computer and use it in GitHub Desktop.
Share static via Django server with DEBUG=False
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