You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
418 B
19 lines
418 B
from main.views import *
|
|
|
|
from django.shortcuts import render_to_response
|
|
from django.http import HttpResponseRedirect
|
|
from django.template import RequestContext
|
|
from django.utils.datastructures import SortedDict
|
|
|
|
def index(request):
|
|
"""
|
|
|
|
Index page.
|
|
|
|
"""
|
|
if not request.user.is_authenticated():
|
|
return HttpResponseRedirect('/login')
|
|
else:
|
|
return HttpResponseRedirect('/home')
|
|
|
|
|