Skip to content

Commit 18a8a4c

Browse files
authored
Merge pull request hack4impact#45 from hack4impact/debug-warning
Print warning message in debug mode; all python commands are unbuffered
2 parents fffd7be + dd2cc2b commit 18a8a4c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
redis: redis-server
2-
web: python manage.py runserver
3-
worker: python -u manage.py run_worker
2+
web: python -u manage.py runserver
3+
worker: python -u manage.py run_worker

config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class DevelopmentConfig(Config):
4343
ASSETS_DEBUG = True
4444
SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or \
4545
'sqlite:///' + os.path.join(basedir, 'data-dev.sqlite')
46+
print 'THIS APP IS IN DEBUG MODE. YOU SHOULD NOT SEE THIS IN PRODUCTION.'
4647

4748

4849
class TestingConfig(Config):

0 commit comments

Comments
 (0)