diff options
author | Mike Crute <mcrute@gmail.com> | 2012-12-28 12:20:37 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2012-12-28 12:20:37 -0500 |
commit | 58bb872b14658fac9ad719f46bb4b1f80c966fc1 (patch) | |
tree | 5e4298b87c6f2b437a80120c98972a2deb5dab0a /accounts | |
parent | 6ba89b2cb334b0ef43519eeb02d8d6ac0cd20264 (diff) | |
download | django-precompiler-58bb872b14658fac9ad719f46bb4b1f80c966fc1.tar.bz2 django-precompiler-58bb872b14658fac9ad719f46bb4b1f80c966fc1.tar.xz django-precompiler-58bb872b14658fac9ad719f46bb4b1f80c966fc1.zip |
[REBASE] login required on profile
Diffstat (limited to 'accounts')
-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 | ||