mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
Add manage.py command to print settings
This commit is contained in:
parent
880412da94
commit
eade74ffb0
@ -52,6 +52,15 @@ def runworkers():
|
||||
def make_shell_context():
|
||||
return dict(app=app, db=db, models=models)
|
||||
|
||||
@manager.command
|
||||
def check_settings():
|
||||
from types import ModuleType
|
||||
|
||||
for name in dir(settings):
|
||||
item = getattr(settings, name)
|
||||
if not callable(item) and not name.startswith("__") and not isinstance(item, ModuleType):
|
||||
print "{} = {}".format(name, item)
|
||||
|
||||
@database_manager.command
|
||||
def create_tables():
|
||||
"""Creates the database tables."""
|
||||
|
Loading…
Reference in New Issue
Block a user