1 import os
2
3 DB = 'sqlite:///database.sqlite'
4 DEBUG = True
5 static = '/static'
6 LOGIN = '/login'
7
8 curdir = os.path.abspath(os.path.dirname(__file__))
9
10
11 localedir = os.path.join(curdir, 'i18n')
12 pluginsdir = os.path.join(curdir, 'pluginmanager', 'plugins')
13 langs = ('en', 'es')
14
15 sitename = u"Opengnsys"
16 siteurl = u"http://0.0.0.0:8080/"
17 noreply_email = u"noreply@opengnsys.es"
18 admin_email = u"admin@opengnsys.es"
19
20
21
22
23 log_file = os.path.join('log', 'opengnsys')
24
25
26 log_interval = 'h'
27
28
29 log_backups = 1
30
31
32 client_daemon_port = 1100
33
34
35 key_file = os.path.join(curdir, 'ssl', 'localhost.key')
36 cert_file = os.path.join(curdir, 'ssl', 'localhost.pem')
37 ca_cert = os.path.join(curdir, 'ssl', 'ca-cert.pem')
38
39
40
41 if os.environ.has_key('OPENGNSYS_MODE') and os.environ['OPENGNSYS_MODE'] == 'testing':
42 from tests.testconfig import *
43