howitworks is default home page if not logged in. Otherwise course

index. NOTE: didn't fix old wrong behavior of going to index if not
logged in and tried to navigate to a specific page. Will work on that
next.
This commit is contained in:
Don Mitchell
2013-02-13 09:30:54 -05:00
parent d569c559ca
commit 6f3a954d7b
3 changed files with 7 additions and 3 deletions

View File

@@ -95,7 +95,10 @@ def login_page(request):
})
def howitworks(request):
return render_to_response('howitworks.html', {})
if request.user.is_authenticated():
return index(request)
else:
return render_to_response('howitworks.html', {})
# ==== Views for any logged-in user ==================================