mirror of
https://github.com/Rushilwiz/launchx.git
synced 2025-04-04 20:20:18 -04:00
15 lines
406 B
Python
15 lines
406 B
Python
from django.shortcuts import render
|
|
|
|
from django.contrib.auth import login as auth_login
|
|
from django.contrib.auth import logout as auth_logout
|
|
|
|
from django.contrib.auth.decorators import login_required
|
|
|
|
# Create your views here.
|
|
def login(request):
|
|
return render(request, 'users/login.html')
|
|
|
|
@login_required
|
|
def logout(request):
|
|
auth_logout(request)
|
|
return render(request, 'users/logout.html') |