from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth import login, authenticate
from django.contrib.auth.forms import UserCreationForm
from . import models, forms

# Create your views here.

def Index(request):
    return render(request, 'signup.html')

def GetSignUp(request):
    if request.method == 'POST':
        form = forms.SignUpForm(request.POST)
        if form.is_valid():
            tmpName = request.POST['name']
            tmpEmail = request.POST['email']
            tmpPhone = request.POST['phone']
            newCus = models.Customer(name=tmpName, email=tmpEmail, phone=tmpPhone)
            newCus.save()
            context = {
                'Flag': True
            }
            return render(request, 'signup.html', context)
    return HttpResponse("Error")

def error_404(request, exception):
    return render(request, '404.html')
02c87c0abce35f417515692f567686a8a9e71d35
<mask token>


def error_404(request, exception):
    return render(request, '404.html')

<mask token>


def Index(request):
    return render(request, 'signup.html')


<mask token>


def error_404(request, exception):
    return render(request, '404.html')

<mask token>


def Index(request):
    return render(request, 'signup.html')


def GetSignUp(request):
    if request.method == 'POST':
        form = forms.SignUpForm(request.POST)
        if form.is_valid():
            tmpName = request.POST['name']
            tmpEmail = request.POST['email']
            tmpPhone = request.POST['phone']
            newCus = models.Customer(name=tmpName, email=tmpEmail, phone=
                tmpPhone)
            newCus.save()
            context = {'Flag': True}
            return render(request, 'signup.html', context)
    return HttpResponse('Error')


def error_404(request, exception):
    return render(request, '404.html')

from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth import login, authenticate
from django.contrib.auth.forms import UserCreationForm
from . import models, forms


def Index(request):
    return render(request, 'signup.html')


def GetSignUp(request):
    if request.method == 'POST':
        form = forms.SignUpForm(request.POST)
        if form.is_valid():
            tmpName = request.POST['name']
            tmpEmail = request.POST['email']
            tmpPhone = request.POST['phone']
            newCus = models.Customer(name=tmpName, email=tmpEmail, phone=
                tmpPhone)
            newCus.save()
            context = {'Flag': True}
            return render(request, 'signup.html', context)
    return HttpResponse('Error')


def error_404(request, exception):
    return render(request, '404.html')

from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth import login, authenticate
from django.contrib.auth.forms import UserCreationForm
from . import models, forms

# Create your views here.

def Index(request):
    return render(request, 'signup.html')

def GetSignUp(request):
    if request.method == 'POST':
        form = forms.SignUpForm(request.POST)
        if form.is_valid():
            tmpName = request.POST['name']
            tmpEmail = request.POST['email']
            tmpPhone = request.POST['phone']
            newCus = models.Customer(name=tmpName, email=tmpEmail, phone=tmpPhone)
            newCus.save()
            context = {
                'Flag': True
            }
            return render(request, 'signup.html', context)
    return HttpResponse("Error")

def error_404(request, exception):
    return render(request, '404.html')