Revision 93c39abe

b/conf/ci/settings.py.mysql
1
# -*- coding: utf-8 -*-
2

  
3
# Django settings for synnefo project.
4
import os
5

  
6
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) + '/'
7

  
8
DEBUG = True
9
TEMPLATE_DEBUG = DEBUG
10

  
11
ADMINS = (
12
    # ('Your Name', 'your_email@domain.com'),
13
)
14

  
15
MANAGERS = ADMINS
16 1

  
17 2
DATABASES = {
18 3
	    'default': {
......
28 13
	    }
29 14
	}
30 15

  
31
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
32

  
33
# Local time zone for this installation. Choices can be found here:
34
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
35
# although not all choices may be available on all operating systems.
36
# On Unix systems, a value of None will cause Django to use the same
37
# timezone as the operating system.
38
# If running in a Windows environment this must be set to the same as your
39
# system time zone.
40
TIME_ZONE = 'UTC'
41

  
42
# Language code for this installation. All choices can be found here:
43
# http://www.i18nguy.com/unicode/language-identifiers.html
44
LANGUAGE_CODE = 'en-us'
45

  
46
SITE_ID = 1
47

  
48
# If you set this to False, Django will make some optimizations so as not
49
# to load the internationalization machinery.
50
USE_I18N = True
51

  
52
# If you set this to False, Django will not format dates, numbers and
53
# calendars according to the current locale
54
USE_L10N = True
55

  
56
# Absolute path to the directory that holds media.
57
# Example: "/home/media/media.lawrence.com/"
58
MEDIA_ROOT = ''
59

  
60
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
61
# trailing slash if there is a path component (optional in other cases).
62
# Examples: "http://media.lawrence.com", "http://example.com/media/"
63
MEDIA_URL = ''
64

  
65
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
66
# trailing slash.
67
# Examples: "http://foo.com/media/", "/media/".
68
ADMIN_MEDIA_PREFIX = '/media/'
69

  
70
# our REST API would prefer to be explicit about trailing slashes
71
APPEND_SLASH = False
72

  
73
# Make this unique, and don't share it with anybody.
74
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
75

  
76
# List of callables that know how to import templates from various sources.
77
TEMPLATE_LOADERS = (
78
    'django.template.loaders.filesystem.Loader',
79
    'django.template.loaders.app_directories.Loader',
80
#     'django.template.loaders.eggs.Loader',
81
)
82

  
83
TEMPLATE_CONTEXT_PROCESSORS = (
84
    'django.core.context_processors.request',
85
    'django.core.context_processors.i18n',
86
    'django.contrib.auth.context_processors.auth',
87
)
88

  
89
MIDDLEWARE_CLASSES = (
90
    'django.contrib.sessions.middleware.SessionMiddleware',
91
    'django.middleware.locale.LocaleMiddleware',
92
    'django.middleware.common.CommonMiddleware',
93
    'synnefo.middleware.StripURLMiddleware',
94
    'django.contrib.auth.middleware.AuthenticationMiddleware',
95
    #'synnefo.api.middleware.SynnefoAuthMiddleware',
96
    'django.contrib.messages.middleware.MessageMiddleware',
97
)
98

  
99
ROOT_URLCONF = 'synnefo.urls'
100

  
101
TEMPLATE_DIRS = (
102
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
103
    # Always use forward slashes, even on Windows.
104
    # Don't forget to use absolute paths, not relative paths.
105
)
106

  
107
INSTALLED_APPS = (
108
    'django.contrib.auth',
109
    'django.contrib.contenttypes',
110
    'django.contrib.sessions',
111
    'django.contrib.sites',
112
    'django.contrib.messages',
113
    'django.contrib.admin',
114
    'django_hudson',
115
    # 'django.contrib.admindocs',
116
    #'synnefo.auth',
117
    'synnefo.api',
118
    'synnefo.ui',
119
    'synnefo.db',
120
    'synnefo.ganeti',
121
    'synnefo.logic',
122
)
123

  
124
GANETI_CLUSTER_INFO = ("62.217.120.78",5080,"synnefo","ocean!")
125
BACKEND_PREFIX_ID = "gousiosg-" #ganeti needs each machine to have a unique name
126

  
127
LANGUAGES = (
128
  ('el', u'Ελληνικά'),
129
  ('en', 'English'),
130
)
131

  
132
AUTH_PROFILE_MODULE = 'synnefo.OceanUser' 
133
#needed for django. this is the class that implements the User system. We use this to allow users to add stuff for themselves (about, image etc)
134
#http://docs.djangoproject.com/en/dev/topics/auth/#auth-profiles
135

  
136
TIMEOUT = 10*1000
137
#after this time passes and the client gets no response, it raises an alert that there are network problems
138
POLL_LIMIT = 3600
139
#maximum number of seconds, needed for server and images polling
140

  
141
GANETI_ZMQ_PUBLISHER = "tcp://62.217.120.67:5801"
142

  
143
API_ROOT_URL = 'http://127.0.0.1:8000/api/'
144

  
145
SHIBBOLETH_HOST = "http://wayf.grnet.gr/"
146

  
147
SHIBBOLETH_WHITELIST = {
148
    'localhost' : '127.0.0.1',
149
    'testserver' : '127.0.0.1'
150
}
151

  
152
#Number of hours during which a user token is active
153
AUTH_TOKEN_DURATION = 24
b/conf/ci/settings.py.postgres
1
# -*- coding: utf-8 -*-
2

  
3
# Django settings for synnefo project.
4
import os
5

  
6
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) + '/'
7

  
8
DEBUG = True
9
TEMPLATE_DEBUG = DEBUG
10

  
11
ADMINS = (
12
    # ('Your Name', 'your_email@domain.com'),
13
)
14

  
15
MANAGERS = ADMINS
16 1

  
17 2
DATABASES = {
18 3
	    'default': {
......
25 10
}
26 11

  
27 12

  
28
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
29

  
30
# Local time zone for this installation. Choices can be found here:
31
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
32
# although not all choices may be available on all operating systems.
33
# On Unix systems, a value of None will cause Django to use the same
34
# timezone as the operating system.
35
# If running in a Windows environment this must be set to the same as your
36
# system time zone.
37
TIME_ZONE = 'UTC'
38

  
39
# Language code for this installation. All choices can be found here:
40
# http://www.i18nguy.com/unicode/language-identifiers.html
41
LANGUAGE_CODE = 'en-us'
42

  
43
SITE_ID = 1
44

  
45
# If you set this to False, Django will make some optimizations so as not
46
# to load the internationalization machinery.
47
USE_I18N = True
48

  
49
# If you set this to False, Django will not format dates, numbers and
50
# calendars according to the current locale
51
USE_L10N = True
52

  
53
# Absolute path to the directory that holds media.
54
# Example: "/home/media/media.lawrence.com/"
55
MEDIA_ROOT = ''
56

  
57
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
58
# trailing slash if there is a path component (optional in other cases).
59
# Examples: "http://media.lawrence.com", "http://example.com/media/"
60
MEDIA_URL = ''
61

  
62
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
63
# trailing slash.
64
# Examples: "http://foo.com/media/", "/media/".
65
ADMIN_MEDIA_PREFIX = '/media/'
66

  
67
# our REST API would prefer to be explicit about trailing slashes
68
APPEND_SLASH = False
69

  
70
# Make this unique, and don't share it with anybody.
71
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
72

  
73
# List of callables that know how to import templates from various sources.
74
TEMPLATE_LOADERS = (
75
    'django.template.loaders.filesystem.Loader',
76
    'django.template.loaders.app_directories.Loader',
77
#     'django.template.loaders.eggs.Loader',
78
)
79

  
80
TEMPLATE_CONTEXT_PROCESSORS = (
81
    'django.core.context_processors.request',
82
    'django.core.context_processors.i18n',
83
    'django.contrib.auth.context_processors.auth',
84
)
85

  
86
MIDDLEWARE_CLASSES = (
87
    'django.contrib.sessions.middleware.SessionMiddleware',
88
    'django.middleware.locale.LocaleMiddleware',
89
    'django.middleware.common.CommonMiddleware',
90
    'synnefo.middleware.StripURLMiddleware',
91
    'django.contrib.auth.middleware.AuthenticationMiddleware',
92
    #'synnefo.api.middleware.SynnefoAuthMiddleware',
93
    'django.contrib.messages.middleware.MessageMiddleware',
94
)
95

  
96
ROOT_URLCONF = 'synnefo.urls'
97

  
98
TEMPLATE_DIRS = (
99
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
100
    # Always use forward slashes, even on Windows.
101
    # Don't forget to use absolute paths, not relative paths.
102
)
103

  
104
INSTALLED_APPS = (
105
    'django.contrib.auth',
106
    'django.contrib.contenttypes',
107
    'django.contrib.sessions',
108
    'django.contrib.sites',
109
    'django.contrib.messages',
110
    'django.contrib.admin',
111
    'django_hudson',
112
    # 'django.contrib.admindocs',
113
    #'synnefo.auth',
114
    'synnefo.api',
115
    'synnefo.ui',
116
    'synnefo.db',
117
    'synnefo.ganeti',
118
    'synnefo.logic',
119
)
120

  
121
GANETI_CLUSTER_INFO = ("62.217.120.78",5080,"synnefo","ocean!")
122
BACKEND_PREFIX_ID = "gousiosg-" #ganeti needs each machine to have a unique name
123

  
124
LANGUAGES = (
125
  ('el', u'Ελληνικά'),
126
  ('en', 'English'),
127
)
128

  
129
AUTH_PROFILE_MODULE = 'synnefo.OceanUser' 
130
#needed for django. this is the class that implements the User system. We use this to allow users to add stuff for themselves (about, image etc)
131
#http://docs.djangoproject.com/en/dev/topics/auth/#auth-profiles
132

  
133
TIMEOUT = 10*1000
134
#after this time passes and the client gets no response, it raises an alert that there are network problems
135
POLL_LIMIT = 3600
136
#maximum number of seconds, needed for server and images polling
137

  
138
GANETI_ZMQ_PUBLISHER = "tcp://62.217.120.67:5801"
139

  
140
API_ROOT_URL = 'http://127.0.0.1:8000/api/'
141

  
142
SHIBBOLETH_HOST = "http://wayf.grnet.gr/"
143

  
144
SHIBBOLETH_WHITELIST = {
145
    'localhost' : '127.0.0.1',
146
    'testserver' : '127.0.0.1'
147
}
148

  
149
#Number of hours during which a user token is active
150
AUTH_TOKEN_DURATION = 24
b/conf/ci/settings.py.sqlite
1
# -*- coding: utf-8 -*-
2

  
3
# Django settings for synnefo project.
4
import os
5

  
6
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) + '/'
7

  
8
DEBUG = True
9
TEMPLATE_DEBUG = DEBUG
10

  
11
ADMINS = (
12
    # ('Your Name', 'your_email@domain.com'),
13
)
14

  
15
MANAGERS = ADMINS
16 1

  
17 2
DATABASES = {
18 3
	    'default': {
......
22 7
}
23 8

  
24 9

  
25
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
26

  
27
# Local time zone for this installation. Choices can be found here:
28
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
29
# although not all choices may be available on all operating systems.
30
# On Unix systems, a value of None will cause Django to use the same
31
# timezone as the operating system.
32
# If running in a Windows environment this must be set to the same as your
33
# system time zone.
34
TIME_ZONE = 'UTC'
35

  
36
# Language code for this installation. All choices can be found here:
37
# http://www.i18nguy.com/unicode/language-identifiers.html
38
LANGUAGE_CODE = 'en-us'
39

  
40
SITE_ID = 1
41

  
42
# If you set this to False, Django will make some optimizations so as not
43
# to load the internationalization machinery.
44
USE_I18N = True
45

  
46
# If you set this to False, Django will not format dates, numbers and
47
# calendars according to the current locale
48
USE_L10N = True
49

  
50
# Absolute path to the directory that holds media.
51
# Example: "/home/media/media.lawrence.com/"
52
MEDIA_ROOT = ''
53

  
54
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
55
# trailing slash if there is a path component (optional in other cases).
56
# Examples: "http://media.lawrence.com", "http://example.com/media/"
57
MEDIA_URL = ''
58

  
59
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
60
# trailing slash.
61
# Examples: "http://foo.com/media/", "/media/".
62
ADMIN_MEDIA_PREFIX = '/media/'
63

  
64
# our REST API would prefer to be explicit about trailing slashes
65
APPEND_SLASH = False
66

  
67
# Make this unique, and don't share it with anybody.
68
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
69

  
70
# List of callables that know how to import templates from various sources.
71
TEMPLATE_LOADERS = (
72
    'django.template.loaders.filesystem.Loader',
73
    'django.template.loaders.app_directories.Loader',
74
#     'django.template.loaders.eggs.Loader',
75
)
76

  
77
TEMPLATE_CONTEXT_PROCESSORS = (
78
    'django.core.context_processors.request',
79
    'django.core.context_processors.i18n',
80
    'django.contrib.auth.context_processors.auth',
81
)
82

  
83
MIDDLEWARE_CLASSES = (
84
    'django.contrib.sessions.middleware.SessionMiddleware',
85
    'django.middleware.locale.LocaleMiddleware',
86
    'django.middleware.common.CommonMiddleware',
87
    'synnefo.middleware.StripURLMiddleware',
88
    'django.contrib.auth.middleware.AuthenticationMiddleware',
89
    #'synnefo.api.middleware.SynnefoAuthMiddleware',
90
    'django.contrib.messages.middleware.MessageMiddleware',
91
)
92

  
93
ROOT_URLCONF = 'synnefo.urls'
94

  
95
TEMPLATE_DIRS = (
96
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
97
    # Always use forward slashes, even on Windows.
98
    # Don't forget to use absolute paths, not relative paths.
99
)
100

  
101
INSTALLED_APPS = (
102
    'django.contrib.auth',
103
    'django.contrib.contenttypes',
104
    'django.contrib.sessions',
105
    'django.contrib.sites',
106
    'django.contrib.messages',
107
    'django.contrib.admin',
108
    'django_hudson',
109
    # 'django.contrib.admindocs',
110
    #'synnefo.auth',
111
    'synnefo.api',
112
    'synnefo.ui',
113
    'synnefo.db',
114
    'synnefo.ganeti',
115
    'synnefo.logic',
116
)
117

  
118
GANETI_CLUSTER_INFO = ("62.217.120.78",5080,"synnefo","ocean!")
119
BACKEND_PREFIX_ID = "gousiosg-" #ganeti needs each machine to have a unique name
120

  
121
LANGUAGES = (
122
  ('el', u'Ελληνικά'),
123
  ('en', 'English'),
124
)
125

  
126
AUTH_PROFILE_MODULE = 'synnefo.OceanUser' 
127
#needed for django. this is the class that implements the User system. We use this to allow users to add stuff for themselves (about, image etc)
128
#http://docs.djangoproject.com/en/dev/topics/auth/#auth-profiles
129

  
130
TIMEOUT = 10*1000
131
#after this time passes and the client gets no response, it raises an alert that there are network problems
132
POLL_LIMIT = 3600
133
#maximum number of seconds, needed for server and images polling
134

  
135
GANETI_ZMQ_PUBLISHER = "tcp://62.217.120.67:5801"
136

  
137
API_ROOT_URL = 'http://127.0.0.1:8000/api/'
138

  
139
SHIBBOLETH_HOST = "http://wayf.grnet.gr/"
140

  
141
SHIBBOLETH_WHITELIST = {
142
    'localhost' : '127.0.0.1',
143
    'testserver' : '127.0.0.1'
144
}
145

  
146
#Number of hours during which a user token is active
147
AUTH_TOKEN_DURATION = 24

Also available in: Unified diff