55 lines
1.6 KiB
Python
55 lines
1.6 KiB
Python
DEBUG = False
|
|
INTERNAL_IPS = ["82.69.88.125", "217.155.198.96"]
|
|
#SECURE_SSL_REDIRECT = False
|
|
#SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
|
|
#REMOTE_URL = "http://46.101.13.46:8123"
|
|
#
|
|
#MEDIA_ROOT = '/home/django/rad/media/'
|
|
STATIC_ROOT = '/home/ross/web/static/'
|
|
|
|
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
|
|
|
if not DEBUG:
|
|
LOGGING = {
|
|
'version': 1,
|
|
'disable_existing_loggers': False,
|
|
'formatters': {
|
|
'verbose': {
|
|
'format' : "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
|
|
'datefmt' : "%d/%b/%Y %H:%M:%S"
|
|
},
|
|
'simple': {
|
|
'format': '%(levelname)s %(message)s'
|
|
},
|
|
},
|
|
'handlers': {
|
|
'file': {
|
|
'level': 'DEBUG',
|
|
'class': 'logging.FileHandler',
|
|
'filename': 'log.txt',
|
|
'formatter': 'verbose'
|
|
},
|
|
},
|
|
'loggers': {
|
|
'django': {
|
|
'handlers':['file'],
|
|
'propagate': True,
|
|
'level':'DEBUG',
|
|
},
|
|
'atlas': {
|
|
'handlers': ['file'],
|
|
'level': 'DEBUG',
|
|
},
|
|
#"django.core.mail": {"handlers": ["console"], "level": "DEBUG", "propagate": False},
|
|
#"smtplib": {"handlers": ["console"], "level": "DEBUG", "propagate": False},
|
|
}
|
|
}
|
|
|
|
CIMAR_USERNAME = "ross.kruger@nhs.net"
|
|
CIMAR_PASSWORD = "[prdr32@cimar]"
|
|
|
|
# Celery settings
|
|
CELERY_BROKER_URL = "redis://localhost:6379"
|
|
CELERY_RESULT_BACKEND = "redis://localhost:6379"
|