diff options
-rw-r--r-- | accounts/views.py | 2 |
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 @@ | |||
1 | from django.shortcuts import render, redirect | 1 | from django.shortcuts import render, redirect |
2 | from django.contrib.auth import authenticate, login | 2 | from django.contrib.auth import authenticate, login |
3 | from django.contrib.auth.decorators import login_required | ||
3 | 4 | ||
4 | from accounts.forms import UserCreationForm | 5 | from accounts.forms import UserCreationForm |
5 | 6 | ||
6 | 7 | ||
8 | @login_required | ||
7 | def profile(request): | 9 | def profile(request): |
8 | return render(request, "accounts/profile.html") | 10 | return render(request, "accounts/profile.html") |
9 | 11 | ||