clean configs

This commit is contained in:
Cayo Puigdefabregas 2021-12-28 13:55:26 +01:00
parent a23d3427fb
commit 9e042125a3
3 changed files with 1 additions and 5 deletions

View File

@ -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)

View File

@ -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,

View File

@ -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):