django-orchestra-test/orchestra/conf/devel_settings.py

24 lines
665 B
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
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
2014-10-04 17:40:13 +00:00
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'