Created short urls for auth

This commit is contained in:
Kristofers Solo 2023-06-29 22:51:21 +00:00
parent 1073f6bb16
commit 513ffe1abb
2 changed files with 16 additions and 1 deletions

View File

@ -13,5 +13,8 @@ urlpatterns = [
path("dashboard/", views.dashboard, name="dashboard"), path("dashboard/", views.dashboard, name="dashboard"),
path("news/", views.news, name="news"), path("news/", views.news, name="news"),
path("help/", views.help, name="help"), path("help/", views.help, name="help"),
path("login/", views.login),
path("logout/", views.logout),
path("signup/", views.signup),
path("<str:username>/", ProfileProjectListView.as_view(), name="profile"), path("<str:username>/", ProfileProjectListView.as_view(), name="profile"),
] ]

View File

@ -1,10 +1,22 @@
from django.shortcuts import render from django.shortcuts import redirect, render
def homepage(request): def homepage(request):
return render(request, "homepage.html", {"title": "FOSSDB"}) return render(request, "homepage.html", {"title": "FOSSDB"})
def login(request):
return redirect("login")
def logout(request):
return redirect("logout")
def signup(request):
return redirect("signup")
def contribute(request): def contribute(request):
return render(request, "contribute.html", {"title": "FOSSDB | Contribute"}) return render(request, "contribute.html", {"title": "FOSSDB | Contribute"})