django-orchestra-test/orchestra/conf/devel_settings.py
2014-10-04 17:40:13 +00:00

24 lines
665 B
Python

import sys
from orchestra.conf.base_settings import *
DEBUG = True
TEMPLATE_DEBUG = True
CELERY_SEND_TASK_ERROR_EMAILS = False
# When DEBUG is enabled Django appends every executed SQL statement to django.db.connection.queries
# this will grow unbounded in a long running process environment like celeryd
if "celeryd" in sys.argv or 'celeryev' in sys.argv or 'celerybeat' in sys.argv:
DEBUG = False
# Django debug toolbar
INSTALLED_APPS += ('debug_toolbar', )
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS = ('127.0.0.1', '10.0.3.1',) #10.0.3.1 is the lxcbr0 ip
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'