comparison contact/urls.py @ 819:38db6ec61af3

Contact form can prepopulate subject field now. Also updated code for PEP-8 and added tests.
author Brian Neal <bgneal@gmail.com>
date Sat, 20 Sep 2014 14:05:52 -0500
parents ee87ea74d46b
children 5ba2508939f7
comparison
equal deleted inserted replaced
818:cf486a8e8b43 819:38db6ec61af3
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 patterns, url
3 from django.views.generic import TemplateView
3 4
4 urlpatterns = patterns('contact.views', 5 urlpatterns = patterns('',
5 url(r'^$', 'contact_form', name='contact-form'), 6 url(r'^$', 'contact.views.contact_form', name='contact-form'),
6 (r'^thanks/$', 'contact_thanks'), 7 url(r'^thanks/$',
8 TemplateView.as_view(template_name='contact/contact_thanks.html'),
9 name='contact-thanks'),
7 ) 10 )