mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
Created short urls for auth
This commit is contained in:
parent
1073f6bb16
commit
513ffe1abb
@ -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"),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -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"})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user