Created
November 8, 2013 13:13
-
-
Save csarcom/7370871 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Django settings for azionmanager project. | |
# -*- encoding: utf-8 -*- | |
import sys | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. | |
'NAME': 'azionmanager', # Or path to database file if using sqlite3. | |
'USER': 'root', # Not used with sqlite3. | |
'PASSWORD': '123', # Not used with sqlite3. | |
'TEST_CHARSET' : 'UTF8', | |
#'HOST': '198.49.69.5', | |
} | |
} | |
if 'test' in sys.argv or 'jenkins' in sys.argv: | |
SOUTH_TESTS_MIGRATE = False | |
DATABASES['default'] = {'ENGINE': 'django.db.backends.sqlite3'} | |
#ACTIVEMQ_HOST_LIST = ['198.49.69.7'] # endereco dos servidores ActiveMQ | |
# A sample logging configuration. The only tangible logging | |
# performed by this configuration is to send an email to | |
# the site admins on every HTTP 500 error. | |
# See http://docs.djangoproject.com/en/dev/topics/logging for | |
# more details on how to customize your logging configuration. | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'filters': { | |
'require_debug_false': { | |
'()': 'django.utils.log.RequireDebugFalse', | |
} | |
}, | |
'formatters': { | |
'verbose': { | |
'format': '--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} % (self.name, self.line_format))' | |
}, | |
}, | |
'handlers': { | |
'mail_admins': { | |
'level': 'DEBUG', | |
'filters': ['require_debug_false'], | |
'class': 'django.utils.log.AdminEmailHandler' | |
}, | |
}, | |
'loggers': { | |
'django.request': { | |
'handlers': ['mail_admins'], | |
'level': 'ERROR', | |
'propagate': True, | |
}, | |
'purge': { | |
'handler': ['console'], | |
'level': 'DEBUG', | |
'propagate': True | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment