Do not use flask outside of server mode.
This commit is contained in:
parent
7eb5b60620
commit
2bd4567801
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,6 @@ from jinja2 import Environment, DictLoader, TemplateNotFound
|
||||||
import six
|
import six
|
||||||
from six.moves.urllib.parse import parse_qs, urlparse
|
from six.moves.urllib.parse import parse_qs, urlparse
|
||||||
|
|
||||||
from flask import render_template
|
|
||||||
import xmltodict
|
import xmltodict
|
||||||
from pkg_resources import resource_filename
|
from pkg_resources import resource_filename
|
||||||
from werkzeug.exceptions import HTTPException
|
from werkzeug.exceptions import HTTPException
|
||||||
|
|
@ -375,6 +374,7 @@ class MotoAPIResponse(BaseResponse):
|
||||||
return 200, {"Content-Type": "application/javascript"}, json.dumps(results)
|
return 200, {"Content-Type": "application/javascript"}, json.dumps(results)
|
||||||
|
|
||||||
def dashboard(self, request, full_url, headers):
|
def dashboard(self, request, full_url, headers):
|
||||||
|
from flask import render_template
|
||||||
return render_template('dashboard.html')
|
return render_template('dashboard.html')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue