Untitled
unknown
plain_text
2 years ago
800 B
10
Indexable
def login(request):
return render(request,'login.html')
def login_post(request):
username=request.POST['username']
password=request.POST['password']
return HttpResponse('''<script>alert('login successfully');windows.location="/myapp/login/"</scipt>''')
def registration(request):
return render(request,"registration.html")
def registration_post(request):
name=request.POST['Name']
email=request.POST['email']
phone=request.POST['Phone']
photo=request.POST['Photo']
gender=request.POST['gender']
district=request.POST['District']
password=request.POST['Password']
confirm_password=request.POST['Confirm password']
return HttpResponse('''<script>alert('Registration successfully');windows.location="/myapp/reg/"</scipt>''')Editor is loading...