diff --git a/Main/urls.py b/Main/urls.py index 7c0570f..5ebcde6 100644 --- a/Main/urls.py +++ b/Main/urls.py @@ -1,4 +1,5 @@ from django.urls import path + from .views import index_view, login_view, signUp_view urlpatterns = [ diff --git a/Main/views.py b/Main/views.py index ae18729..679aaff 100644 --- a/Main/views.py +++ b/Main/views.py @@ -1,11 +1,14 @@ from django.contrib.auth import authenticate, login from django.shortcuts import render from django.http import HttpResponse +from django.contrib.auth import login, authenticate +from django.contrib.auth.forms import UserCreationForm # Create your views here. def index_view(request): if request.method == 'GET': + return render(request, 'Index.html') return HttpResponse(405) @@ -22,3 +25,4 @@ def login_view(request): return HttpResponse(201) else: return HttpResponse(405) + diff --git a/templates/Main/index.html b/templates/Main/index.html new file mode 100644 index 0000000..82c8fe4 --- /dev/null +++ b/templates/Main/index.html @@ -0,0 +1,6 @@ +