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"]