(request, username)
return HttpResponse()
authenticates the user with regular http basic auth
authenticates the user with regular http basic auth
authenticates the user with regular http basic auth
def login(request, username):
    """
    authenticates the user with regular http basic auth
    """

    request.session.set_expiry(datetime.utcnow() + timedelta(days=365))
    return HttpResponse()
def login ( request , username ) : request . session . set_expiry ( datetime . utcnow ( ) + timedelta ( days = 365 ) ) return HttpResponse ( )