File: urls.py

package info (click to toggle)
python-django-crispy-forms-foundation 0.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 844 kB
  • sloc: javascript: 6,437; python: 1,221; makefile: 187; sh: 17
file content (26 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
Sandbox URL Configuration
"""
from django.urls import include, re_path
from django.contrib import admin

from django.views.generic.base import TemplateView


urlpatterns = [
    # Dummy homepage just for simple ping view
    re_path(r'^$', TemplateView.as_view(
        template_name="homepage.html"
    ), name='home'),

     re_path(r'^crispy-forms/',
         include('sandbox.demo.urls', namespace='demo')),
]

try:
    import debug_toolbar
    urlpatterns += [
        re_path(r'^__debug__/', include(debug_toolbar.urls)),
    ]
except ImportError:
    pass