1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
django-client-reverse/django_client_reverse/test_urls.py

17 lines
367 B
Python
Raw Normal View History

2015-12-09 22:30:52 +00:00
from django.conf.urls import url
2015-12-10 18:21:17 +00:00
from django.http import HttpResponse
PASS_TEXT = "PASS"
def test_view(request, *args, **kwargs):
return HttpResponse(PASS_TEXT)
2015-12-09 22:23:06 +00:00
urlpatterns = [
2015-12-10 18:21:17 +00:00
url(r'^$', test_view, name="root"),
url(r'(?P<uuid>[0-9a-f-]+)/$', test_view, name="uuid"),
url(r'(?P<uuid>[0-9a-f-]+)/(?P<pk>[0-9a-f-]+)$', test_view, name="multi")
2015-12-09 22:23:06 +00:00
]