Created
November 1, 2013 12:37
-
-
Save csarcom/7264821 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 os | |
import sys | |
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) | |
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'} | |
# Absolute filesystem path to the directory that will hold user-uploaded files. | |
# Example: "/home/media/media.lawrence.com/media/" | |
MEDIA_ROOT = '/Users/charles.sartori/MyProjects/azionmanager/htdocs/static/media' | |
# 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': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' | |
}, | |
}, | |
'handlers': { | |
'mail_admins': { | |
'level': 'DEBUG', | |
'filters': ['require_debug_false'], | |
'class': 'django.utils.log.AdminEmailHandler' | |
}, | |
'console': { | |
'level': 'DEBUG', | |
'class': 'logging.StreamHandler', | |
'formatter': 'verbose' | |
} | |
}, | |
'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