Statistics
| Branch: | Tag: | Revision:

root / snf-webproject / synnefo / webproject / settings / default / database.py @ 0fa71fcc

History | View | Annotate | Download (986 Bytes)

1 1277fb19 Vangelis Koukis
# Database settings
2 1277fb19 Vangelis Koukis
####################
3 1277fb19 Vangelis Koukis
4 1277fb19 Vangelis Koukis
5 1277fb19 Vangelis Koukis
DATABASES = {
6 1277fb19 Vangelis Koukis
    'default': {
7 5505e60c Kostas Papadimitriou
        # Available values 'postgresql_psycopg2', 'postgresql','mysql',
8 5505e60c Kostas Papadimitriou
        # 'sqlite3' or 'oracle'
9 49026a89 Ilias Tsitsimpis
        'ENGINE': 'django.db.backends.sqlite3',
10 5505e60c Kostas Papadimitriou
11 4691814d Ilias Tsitsimpis
        # ATTENTION: This *must* be the absolute path if using sqlite3.
12 4691814d Ilias Tsitsimpis
        # See: http://docs.djangoproject.com/en/dev/ref/settings/#name
13 5505e60c Kostas Papadimitriou
        'NAME': '/usr/share/synnefo/synnefo_database.sqlite',
14 5505e60c Kostas Papadimitriou
15 1277fb19 Vangelis Koukis
        'USER': '',                      # Not used with sqlite3.
16 5505e60c Kostas Papadimitriou
17 1277fb19 Vangelis Koukis
        'PASSWORD': '',                  # Not used with sqlite3.
18 1277fb19 Vangelis Koukis
        # Set to empty string for localhost. Not used with sqlite3.
19 5505e60c Kostas Papadimitriou
20 1277fb19 Vangelis Koukis
        'HOST': '',
21 5505e60c Kostas Papadimitriou
22 1277fb19 Vangelis Koukis
        # Set to empty string for default. Not used with sqlite3.
23 1277fb19 Vangelis Koukis
        'PORT': '',
24 5505e60c Kostas Papadimitriou
25 5505e60c Kostas Papadimitriou
        # Uncomment the following lines if you use mysql database
26 5505e60c Kostas Papadimitriou
        #'OPTIONS': {
27 5505e60c Kostas Papadimitriou
        #    'init_command': 'SET storage_engine=INNODB; ' +
28 5505e60c Kostas Papadimitriou
        #        'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
29 5505e60c Kostas Papadimitriou
        #}
30 1277fb19 Vangelis Koukis
    }
31 1277fb19 Vangelis Koukis
}