From 58bb872b14658fac9ad719f46bb4b1f80c966fc1 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Fri, 28 Dec 2012 12:20:37 -0500 Subject: [REBASE] login required on profile --- accounts/views.py | 2 ++ 1 file changed, 2 insertions(+) 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 @@ from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login +from django.contrib.auth.decorators import login_required from accounts.forms import UserCreationForm +@login_required def profile(request): return render(request, "accounts/profile.html") -- cgit v1.2.3