Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/webapp/env_settings.py.sample
blob: eee0844179834905020c2d24f622cd0f37b0db4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from utils.mongo_connection import register_connection


DEBUG = False
TEMPLATE_DEBUG = DEBUG

# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en//ref/settings/#allowed-hosts
ALLOWED_HOSTS = ["domain.com"]

MONGO_SETTINGS = {
    'ALIAS': 'default',
    'NAME': 'dev_polls',
    'USER': '',
    'PASSWORD': '',
    'HOST': '127.0.0.1',
    'PORT': 27017,
}

register_connection(
    alias=MONGO_SETTINGS['ALIAS'],
    name=MONGO_SETTINGS['NAME'],
    host=MONGO_SETTINGS['HOST'],
    port=MONGO_SETTINGS['PORT'],
)