Mercurial > public > sg101
comparison contact/urls.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | 38db6ec61af3 |
children | 6ac56115e0a8 |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """urls for the contact application""" | 1 """urls for the contact application""" |
2 from django.conf.urls import patterns, url | 2 from django.conf.urls import url |
3 from django.views.generic import TemplateView | 3 from django.views.generic import TemplateView |
4 | 4 |
5 urlpatterns = patterns('', | 5 import contact.views |
6 url(r'^$', 'contact.views.contact_form', name='contact-form'), | 6 |
7 urlpatterns = [ | |
8 url(r'^$', contact.views.contact_form, name='contact-form'), | |
7 url(r'^thanks/$', | 9 url(r'^thanks/$', |
8 TemplateView.as_view(template_name='contact/contact_thanks.html'), | 10 TemplateView.as_view(template_name='contact/contact_thanks.html'), |
9 name='contact-thanks'), | 11 name='contact-thanks'), |
10 ) | 12 ] |