コード例 #1
0
"""
This file provide database settings for clear db
database heroku addon.
Example
-------
from django_helpers.heroku.clear_db_settings import DATABASES
"""
__author__ = 'ajumell'

import database

if database.has_clear_db():
    DATABASES = {
        'default': database.parse_clear_db()
    }
コード例 #2
0
ファイル: settings.py プロジェクト: ajumell/django-helpers
given below.

Order
-----
1. Clear DB Database
2. Heroku Shared PG Database

Email Settings
==============
Currently send grid settings will be generated
automatically.

"""
__author__ = 'ajumell'
from send_grid_settings import EMAIL_HOST, EMAIL_HOST_PASSWORD, EMAIL_HOST_USER, EMAIL_PORT
from database import has_clear_db


if has_clear_db():
    from clear_db_settings import DATABASES
else:
    pass

__all__ = (
    EMAIL_HOST,
    EMAIL_HOST_PASSWORD,
    EMAIL_HOST_USER,
    EMAIL_PORT,
    DATABASES
    )