Gitlab CSE Unil

local.py 817 Bytes
Newer Older
1
2
3
4
5
6
"""
Settings for local development
"""
from .base import *

DEBUG = True
M. Chardon's avatar
M. Chardon committed
7
#TEMPLATE_DEBUG = TEMPLATES[0]['OPTIONS']['debug'] = True
8

9
10
# update_urls('/adim-dev/', __name__)

11
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', ]
12

13
14
WSGI_APPLICATION = '%s.wsgi.local.application' % SITE_NAME

15
16
17
18
19
20
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'adim_dev',
        'USER': 'adim',
        'PASSWORD': 'fsdkuz289r3jhkasdf987',
21
22
23
        # 'HOST': 'localhost',
        'HOST': '127.0.0.1',
        'PORT': 3306,
24
25
26
    },
}

27
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
28
EMAIL_FILE_PATH = '{}/log/emails/current'.format(dirname(SITE_ROOT))
29

Julien Furrer's avatar
Julien Furrer committed
30
31
32
33
SENDFILE_BACKEND = 'sendfile.backends.development'

ADIM_PROD = False
ADIM_DEBUG_JS = True
34

35
INTERNAL_IPS = ('127.0.0.1', '130.223.159.72')