clean configs
This commit is contained in:
parent
a23d3427fb
commit
9e042125a3
|
@ -1,4 +1,3 @@
|
|||
import os
|
||||
from distutils.version import StrictVersion
|
||||
from itertools import chain
|
||||
from typing import Set
|
||||
|
@ -79,4 +78,3 @@ class DevicehubConfig(Config):
|
|||
"""Definition of path where save the documents of customers"""
|
||||
PATH_DOCUMENTS_STORAGE = config('PATH_DOCUMENTS_STORAGE', '/tmp/')
|
||||
JWT_PASS = config('JWT_PASS', '')
|
||||
SECRET_KEY = os.urandom(32)
|
||||
|
|
|
@ -6,7 +6,6 @@ import boltons.urlutils
|
|||
import click
|
||||
import click_spinner
|
||||
import ereuse_utils.cli
|
||||
from flask_login import LoginManager
|
||||
from ereuse_utils.session import DevicehubClient
|
||||
from flask.globals import _app_ctx_stack, g
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
@ -32,7 +31,6 @@ class Devicehub(Teal):
|
|||
test_client_class = Client
|
||||
Dummy = Dummy
|
||||
jinja_environment = Environment
|
||||
login_manager = LoginManager()
|
||||
|
||||
def __init__(self,
|
||||
inventory: str,
|
||||
|
|
|
@ -33,7 +33,7 @@ class LoginView(View):
|
|||
|
||||
|
||||
class UserProfileView(View):
|
||||
# decorators = [login_required]
|
||||
decorators = [login_required]
|
||||
template_name = 'ereuse_devicehub/user_profile.html'
|
||||
|
||||
def dispatch_request(self):
|
||||
|
|
Reference in a new issue