Example #1
0
        "loggers": {
            "django": {
                "handlers": ["console"],
                "level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
            },
            "pythonie": {
                "handlers": ["console"],
                "level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
            },
            "meetups": {
                "handlers": ["console"],
                "level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
            },
            "sponsors": {
                "handlers": ["console"],
                "level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
            },
            "speakers": {
                "handlers": ["console"],
                "level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
            },
            "core": {
                "handlers": ["console"],
                "level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
            },
        }
    }
)

REDIS = configure_redis(None, test=True)
Example #2
0
TEMPLATE_DEBUG = False

DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_ACCESS_KEY_ID = os.getenv('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = os.getenv('AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = os.getenv('AWS_STORAGE_BUCKET_NAME')
AWS_S3_CUSTOM_DOMAIN = 's3.python.ie'
AWS_HOST = 's3-eu-west-1.amazonaws.com'

# Compress static files offline
# http://django-compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_OFFLINE

COMPRESS_OFFLINE = False

REDIS_URL = os.environ.get('REDISCLOUD_URL')
REDIS = configure_redis(REDIS_URL)

# Send notification emails as a background task using Celery,
# to prevent this from blocking web server threads
# (requires the django-celery package):
# http://celery.readthedocs.org/en/latest/configuration.html

# import djcelery
#
# djcelery.setup_loader()
#
# CELERY_SEND_TASK_ERROR_EMAILS = True
# BROKER_URL = 'redis://'


# Use Redis as the cache backend for extra performance
Example #3
0
SECRET_KEY = "1185a082-7e72-449e-bf43-12d2da59222b"  # Just for dev
MEETUP_KEY = ""  # Put your own key here.
# See https://secure.meetup.com/meetup_api/key/

EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

# SQLite (simplest install)
DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": join(PROJECT_ROOT, "db.sqlite3"),
    }
}

# assumes no DEV:REDISCLOUD_URL available but that redis-server running locally
REDIS_URL = os.environ.get("REDISCLOUD_URL", "//127.0.0.1:6379")
REDIS = configure_redis(REDIS_URL)

# CACHES = {
#     'default': {
#         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
#         'LOCATION': '127.0.0.1:11211',
#     }
# }

try:
    from .local import *  # noqa
except ImportError:
    pass
Example #4
0
LOGGING.update({
    'loggers': {
        'django': {
            'handlers': ['console'],
            'level': os.getenv('DJANGO_LOG_LEVEL', 'ERROR'),
        },
        'pythonie': {
            'handlers': ['console'],
            'level': os.getenv('DJANGO_LOG_LEVEL', 'ERROR'),
        },
        'meetups': {
            'handlers': ['console'],
            'level': os.getenv('DJANGO_LOG_LEVEL', 'ERROR'),
        },
        'sponsors': {
            'handlers': ['console'],
            'level': os.getenv('DJANGO_LOG_LEVEL', 'ERROR'),
        },
        'speakers': {
            'handlers': ['console'],
            'level': os.getenv('DJANGO_LOG_LEVEL', 'ERROR'),
        },
        'core': {
            'handlers': ['console'],
            'level': os.getenv('DJANGO_LOG_LEVEL', 'ERROR'),
        },
    }})

REDIS = configure_redis(None, test=True)