# -*- coding: utf-8 -*-
import sys

from django.http import HttpResponse, HttpRequest, HttpResponseServerError, Http404
from django.shortcuts import redirect

def login_required(view):
  def verified(request, *args, **kwargs):
    try:
      request.session['uid']
      return view(request, *args, **kwargs)
    except:
      return redirect('/login')
  return verified

d8254f4ba456512b57235eff8228c3f3aea3e344
<mask token>

<mask token>


def login_required(view):

    def verified(request, *args, **kwargs):
        try:
            request.session['uid']
            return view(request, *args, **kwargs)
        except:
            return redirect('/login')
    return verified

import sys
from django.http import HttpResponse, HttpRequest, HttpResponseServerError, Http404
from django.shortcuts import redirect


def login_required(view):

    def verified(request, *args, **kwargs):
        try:
            request.session['uid']
            return view(request, *args, **kwargs)
        except:
            return redirect('/login')
    return verified

# -*- coding: utf-8 -*-
import sys

from django.http import HttpResponse, HttpRequest, HttpResponseServerError, Http404
from django.shortcuts import redirect

def login_required(view):
  def verified(request, *args, **kwargs):
    try:
      request.session['uid']
      return view(request, *args, **kwargs)
    except:
      return redirect('/login')
  return verified
