forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
26 lines (21 loc) · 823 Bytes
/
urls.py
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
from django.contrib import admin
from django.http.response import HttpResponse
from django.urls import include, path
admin.autodiscover()
def empty_view(request):
return HttpResponse()
urlpatterns = [
path("home/", empty_view, name="home"),
path("admin/", admin.site.urls),
path("djstripe/", include("djstripe.urls", namespace="djstripe")),
path("example/", include("tests.apps.example.urls")),
path("testapp/", include("tests.apps.testapp.urls")),
path(
"testapp_namespaced/",
include("tests.apps.testapp_namespaced.urls", namespace="testapp_namespaced"),
),
# Represents protected content
path("testapp_content/", include("tests.apps.testapp_content.urls")),
# For testing fnmatches
path("test_fnmatch/extra_text/", empty_view, name="test_fnmatch"),
]