From 9155ec72367676802defac71fd700039949bd21d Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 1 Sep 2017 17:55:39 +0300 Subject: [PATCH] v1.0 --- rbmd/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rbmd/views.py b/rbmd/views.py index 1214d12..a87a978 100644 --- a/rbmd/views.py +++ b/rbmd/views.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals from django.http import JsonResponse from django.shortcuts import render +from django.contrib.auth.decorators import login_required import json import requests @@ -47,6 +48,7 @@ def resolve(request): print 'res' + res return JsonResponse(res, safe=False) +@login_required(login_url="/admin/login/?next=/") def panel(request): with open('conf.json') as conf: ws = json.load(conf)["ws"]