django1/tests/template_tests/alternate_urls.py

12 lines
273 B
Python
Raw Normal View History

from django.conf.urls import url
from . import views
urlpatterns = [
# View returning a template response
url(r'^template_response_view/$', views.template_response_view),
# A view that can be hard to find...
url(r'^snark/', views.snark, name='snark'),
]