Commit 96632277 authored by ∞'s avatar 💻

Enforce static file serve in crudlfap_example

And help reduce demo effects xD
parent 96e66968
import re
from crudlfap import shortcuts as crudlfap
from django.conf import settings
from django.conf.urls import include, url
urlpatterns = [crudlfap.site.urlpattern]
from django.urls import include, re_path
from django.views.static import serve
urlpatterns = [
crudlfap.site.urlpattern,
re_path(
r'^%s(?P<path>.*)$' % settings.STATIC_URL.lstrip('/'),
serve,
kwargs=dict(document_root=settings.STATIC_ROOT)
),
]
if 'debug_toolbar' in settings.INSTALLED_APPS and settings.DEBUG:
import debug_toolbar
urlpatterns += [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment