init
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from django.views.generic import TemplateView, FormView
|
from django.views.generic import TemplateView, FormView
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
|
from django.urls import reverse_lazy
|
||||||
|
|
||||||
from ipware import get_client_ip
|
from ipware import get_client_ip
|
||||||
from urllib import parse
|
from urllib import parse
|
||||||
@@ -23,6 +24,7 @@ class ServiceView(TemplateView):
|
|||||||
class ContactView(FormView):
|
class ContactView(FormView):
|
||||||
template_name = 'home/contact.html'
|
template_name = 'home/contact.html'
|
||||||
form_class = ContactForm
|
form_class = ContactForm
|
||||||
|
success_url = reverse_lazy("home:contact_valid")
|
||||||
|
|
||||||
|
|
||||||
class ContactValidView(TemplateView):
|
class ContactValidView(TemplateView):
|
||||||
|
|||||||
Reference in New Issue
Block a user