-
Notifications
You must be signed in to change notification settings - Fork 0
/
views.py
28 lines (21 loc) · 812 Bytes
/
views.py
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
27
28
from django.shortcuts import render, redirect
# Create your views here.
from django.views.generic import TemplateView
from .forms import contactForm
class aboutTemplate(TemplateView):
template_name = 'app_infoPage/about.html'
def contact(request):
if request.method == 'POST':
form = contactForm(request.POST)
if form.is_valid():
form.save()
return redirect('msg')
else:
form = contactForm()
return render(request,'app_infoPage/contact.html',{'forms':form})
class copyrightTemplate(TemplateView):
template_name = 'app_infoPage/copyright.html'
class teamTemplate(TemplateView):
template_name = 'app_infoPage/team.html'
class terms_and_conditionsTemplate(TemplateView):
template_name = 'app_infoPage/terms_and_conditions.html'