diff --git a/Makefile b/Makefile index 101989399..4e44ebb23 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,5 @@ pack: upload: python bin/upload_version.py $(FULL_VERSION) $(FILENAME) -migrate: - source .env && PYTHONPATH=. python $(MIGRATION) - test: nosetests --with-coverage --cover-package=redash tests/*.py diff --git a/bin/run b/bin/run new file mode 100755 index 000000000..eb7f5ff21 --- /dev/null +++ b/bin/run @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +source .env +"$@" diff --git a/manage.py b/manage.py index db83c9b67..a9c91c61f 100755 --- a/manage.py +++ b/manage.py @@ -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."""