summaryrefslogtreecommitdiff
path: root/app/lib/contact/urls.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
committerlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
commitbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch)
tree6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/lib/contact/urls.py
initial commit
Diffstat (limited to 'app/lib/contact/urls.py')
-rw-r--r--app/lib/contact/urls.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/lib/contact/urls.py b/app/lib/contact/urls.py
new file mode 100644
index 0000000..080b33c
--- /dev/null
+++ b/app/lib/contact/urls.py
@@ -0,0 +1,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",
+ ),
+]