1
0
mirror of https://github.com/django/django.git synced 2025-03-27 17:50:46 +00:00
Alasdair Nicol fe3fc5210f Fixed -- Added checks for common URL pattern errors
Thanks jwa and lamby for the suggestions, and timgraham and jarshwah
for their reviews.
2015-09-21 23:46:21 +10:00

16 lines
303 B
Python

from django.conf.urls import include, url
from django.http import HttpResponse
def view(request):
return HttpResponse('')
urlpatterns = [
url(r'^foo/', view, name='foo'),
# This dollar is ok as it is escaped
url(r'^\$', include([
url(r'^bar/$', view, name='bar'),
])),
]