Added handle_nova_error to home page view

This commit is contained in:
Devin Carlen 2011-01-15 01:16:25 -08:00
parent c50cf43d5f
commit 2ab809e010
1 changed files with 3 additions and 0 deletions

View File

@ -24,12 +24,15 @@ from django import template
from django.shortcuts import render_to_response
from django.views.decorators.vary import vary_on_cookie
from django_nova.shortcuts import get_projects
from django_nova.exceptions import handle_nova_error
@vary_on_cookie
@handle_nova_error
def index(request):
projects = None
page_type = "home"
if request.user.is_authenticated():
projects = get_projects(user=request.user)