Statistics
| Branch: | Tag: | Revision:

root / snf-deploy / files / etc / synnefo / webproject.conf @ 26f6ab93

History | View | Annotate | Download (1017 Bytes)

1
from synnefo.lib.db.pooled_psycopg2 import monkey_patch_psycopg2
2
monkey_patch_psycopg2()
3

    
4
from synnefo.lib.db.psyco_gevent import make_psycopg_green
5
make_psycopg_green()
6

    
7
DATABASES = {
8
 'default': {
9
     # 'postgresql_psycopg2', 'postgresql','mysql', 'sqlite3' or 'oracle'
10
     'ENGINE': 'django.db.backends.postgresql_psycopg2',
11
      # ATTENTION: This *must* be the absolute path if using sqlite3.
12
      # See: http://docs.djangoproject.com/en/dev/ref/settings/#name
13
     'OPTIONS': {
14
        'synnefo_poolsize': 13,
15
        },
16
     'NAME': 'snf_apps',
17
     'USER': '%SYNNEFO_USER%',                      # Not used with sqlite3.
18
     'PASSWORD': '%SYNNEFO_DB_PASSWD%',          # Not used with sqlite3.
19
     # Set to empty string for localhost. Not used with sqlite3.
20
     'HOST': '%DB_NODE%',
21
     # Set to empty string for default. Not used with sqlite3.
22
     'PORT': '5432',
23
 }
24
}
25

    
26
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
27
USE_X_FORWARDED_HOST = True
28

    
29
SESSION_COOKIE_DOMAIN = "%DOMAIN%"