Skip to content
Snippets Groups Projects
local_settings_ci.py 1.39 KiB
Newer Older
Valentin Groues's avatar
Valentin Groues committed
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'Paste long random string here'  # Insert long random string

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

WSGI_APPLICATION = 'smash.wsgi.application'

# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'smash',  # Insert your database's name
        'USER': 'runner',  # Insert your database's user
        'PASSWORD': 'password',  # Insert your user's password
        'HOST': 'postgres',
        'PORT': '',
        'TEST': {
            'NAME': 'dbtest',
        },  # '' === default one # Empty string is OK
Valentin Groues's avatar
Valentin Groues committed

        # If to use sqlite
        # 'ENGINE': 'django.db.backends.sqlite3',
        # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
Valentin Groues's avatar
Valentin Groues committed
}

STATIC_ROOT = '/tmp/static'  # Warning! `/tmp` directory can be flushed in any moment; use a persistent one; e.g. ~/tmp/static
MEDIA_ROOT = '/tmp/media'  # Warning! `/tmp` directory can be flushed in any moment; use a persistent one, e.g. ~/tmp/media

ALLOWED_HOSTS = ["127.0.0.1", "localhost"]

STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
Piotr Gawron's avatar
Piotr Gawron committed
NEXMO_API_KEY = 'API_KEY'
NEXMO_API_SECRET = 'API_SECRET'
NEXMO_DEFAULT_FROM = 'Scheduling'  # the sender of the message (phone number or text)