|
a |
|
b/StressDetection/views.py |
|
|
1 |
from django.shortcuts import render |
|
|
2 |
from users.forms import UserRegistrationForm |
|
|
3 |
|
|
|
4 |
|
|
|
5 |
def index(request): |
|
|
6 |
return render(request, 'index.html', {}) |
|
|
7 |
|
|
|
8 |
def logout(request): |
|
|
9 |
return render(request, 'index.html', {}) |
|
|
10 |
|
|
|
11 |
def UserLogin(request): |
|
|
12 |
return render(request, 'UserLogin.html', {}) |
|
|
13 |
|
|
|
14 |
def AdminLogin(request): |
|
|
15 |
return render(request, 'AdminLogin.html', {}) |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
def UserRegister(request): |
|
|
19 |
form = UserRegistrationForm() |
|
|
20 |
return render(request, 'UserRegistrations.html', {'form': form}) |