v1.0
This commit is contained in:
parent
c091bc7ee2
commit
9155ec7236
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user