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:
@@ -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 ==================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user