#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Language Version: 3.4.x
# Last Modified: 2015-06-04 11:45:15


__all__ = []
__author__ = "刘飞 (email:13701242710@163.com)"
__version__ = "1.0.1"

from utils import utils
from django.views.decorators.csrf import csrf_exempt

@csrf_exempt
def index(request):
    if not utils.auth_url(request):
        return utils.get_HttpResponse('Not find')
    username = request.COOKIES.get('username','')
    if username != '':
        return utils.get_HttpResponse('index.html')
    else:
        return utils.get_HttpResponse('please login')