urls.py
from xml.etree.ElementInclude import include
from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path('',views.home,name='home'),
path('signup',views.signup,name='signup'),
path('signin',views.signin,name='signin'),
path('signout',views.signout,name='signout'),
]
views.py
from django.http import HttpResponse
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return render(request, "index.html")
def signup(request):
return render(request, "signup.html")
def signin(request):
return render(request, "signin.html")
def signout(request):
pass
index.html
<button type="submit"> <a href="signin.html"></a> Login </button>
<button type="submit"> <a href="signup.html"></a> Sign Up </button>
What I have tried:
tried changing urls and checking the views