File: urls.py

package info (click to toggle)
python-django-contact-form 0%2Bhg65-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 152 kB
  • ctags: 79
  • sloc: python: 221; makefile: 137
file content (26 lines) | stat: -rw-r--r-- 817 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
Example URLConf for a contact form.

If all you want is the basic ContactForm with default behavior, just
include this URLConf somewhere in your URL hierarchy (for example, at
``/contact/``)>

"""

from django.conf.urls import patterns
from django.conf.urls import url
from django.views.generic import TemplateView

from contact_form.views import ContactFormView


urlpatterns = patterns('',
                       url(r'^$',
                           ContactFormView.as_view(),
                           name='contact_form'),
                       url(r'^sent/$',
                           TemplateView.as_view(
                               template_name='contact_form/contact_form_sent.html'
                               ),
                           name='contact_form_sent'),
                       )