mirror of
https://github.com/Hopiu/django.git
synced 2026-05-02 20:54:44 +00:00
16 lines
303 B
Python
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'),
|
||
|
|
])),
|
||
|
|
]
|