summaryrefslogtreecommitdiff
path: root/app/lib/contact/urls.py
blob: 080b33c54c6b8a43ba6cfd3169d476e4f7a36e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Example URLConf for a contact form.

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

"""

from django.urls import path
from django.views.generic import TemplateView

from contact.views import ContactFormView

urlpatterns = [
    path("", ContactFormView.as_view(), name="contact_form"),
    path(
        "sent/",
        TemplateView.as_view(template_name="contact/contact_form_sent.html"),
        name="contact_form_sent",
    ),
]