aboutsummaryrefslogtreecommitdiff
path: root/accounts/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/views.py')
-rw-r--r--accounts/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/accounts/views.py b/accounts/views.py
index 4a0d3ed..aafcfb6 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -1,9 +1,11 @@
1from django.shortcuts import render, redirect 1from django.shortcuts import render, redirect
2from django.contrib.auth import authenticate, login 2from django.contrib.auth import authenticate, login
3from django.contrib.auth.decorators import login_required
3 4
4from accounts.forms import UserCreationForm 5from accounts.forms import UserCreationForm
5 6
6 7
8@login_required
7def profile(request): 9def profile(request):
8 return render(request, "accounts/profile.html") 10 return render(request, "accounts/profile.html")
9 11