Revision 049a5a10 settings.py.dist

b/settings.py.dist
7 7
    # ('Your Name', 'your_email@domain.com'),
8 8
)
9 9

  
10
import djcelery
11
djcelery.setup_loader()
12

  
13

  
10 14
MANAGERS = ADMINS
11 15

  
12 16
DATABASES = {
13 17
    'default': {
14
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
15
        'NAME': 'flowspec',                      # Or path to database file if using sqlite3.
18
        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
19
        'NAME': '',                      # Or path to database file if using sqlite3.
16 20
        'USER': '',                      # Not used with sqlite3.
17 21
        'PASSWORD': '',                  # Not used with sqlite3.
18 22
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
19 23
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
24
        'OPTIONS':  {
25
        "init_command": "SET storage_engine=INNODB",
26
}
20 27
    }
21 28
}
22 29

  
......
27 34
# timezone as the operating system.
28 35
# If running in a Windows environment this must be set to the same as your
29 36
# system time zone.
30
TIME_ZONE = 'America/Chicago'
37
TIME_ZONE = 'Europe/Athens'
38

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

  
43
LANGUAGES = (
44
    ('el', _('Greek')),
45
    ('en', _('English')),
46
)
31 47

  
32 48
# Language code for this installation. All choices can be found here:
33 49
# http://www.i18nguy.com/unicode/language-identifiers.html
......
55 71
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
56 72
# trailing slash.
57 73
# Examples: "http://foo.com/media/", "/media/".
58
ADMIN_MEDIA_PREFIX = '/media/'
74
ADMIN_MEDIA_PREFIX = '/admin/media/'
59 75

  
60 76
# Make this unique, and don't share it with anybody.
61 77
SECRET_KEY = 'fju0e4zu-thi7qf@93voi5eeot21@a*e54)%89xe-7iorqcimk'
......
67 83
#     'django.template.loaders.eggs.Loader',
68 84
)
69 85

  
86
TEMPLATE_CONTEXT_PROCESSORS = (
87
    "django.contrib.auth.context_processors.auth",
88
    "django.core.context_processors.debug",
89
    "django.core.context_processors.i18n",
90
    "django.core.context_processors.media",
91
    "django.contrib.messages.context_processors.messages"
92
)
93

  
70 94
MIDDLEWARE_CLASSES = (
95
    'django.middleware.cache.UpdateCacheMiddleware',
71 96
    'django.middleware.common.CommonMiddleware',
72 97
    'django.contrib.sessions.middleware.SessionMiddleware',
73 98
    'django.middleware.csrf.CsrfViewMiddleware',
74 99
    'django.contrib.auth.middleware.AuthenticationMiddleware',
75 100
    'django.contrib.messages.middleware.MessageMiddleware',
101
    'django.middleware.cache.FetchFromCacheMiddleware',
102
)
103

  
104
AUTHENTICATION_BACKENDS = (
105
    'flowspy.djangobackends.shibauthBackend.shibauthBackend',
106
    'django.contrib.auth.backends.ModelBackend',
76 107
)
77 108

  
78 109
ROOT_URLCONF = 'flowspy.urls'
79 110

  
111
STATIC_URL = '/home/leopoul/projects/flowspy/static'
112

  
80 113
TEMPLATE_DIRS = (
114
    '/home/leopoul/projects/flowspy/templates/',
81 115
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
82 116
    # Always use forward slashes, even on Windows.
83 117
    # Don't forget to use absolute paths, not relative paths.
84 118
)
85 119

  
86 120
INSTALLED_APPS = (
121
    'monkey_patch',
87 122
    'django.contrib.auth',
88 123
    'django.contrib.contenttypes',
89 124
    'django.contrib.sessions',
90 125
    'django.contrib.sites',
91 126
    'django.contrib.messages',
92 127
    'flowspec',
93
    'south',
128
    'poller',
129
#    'south',
94 130
    # Uncomment the next line to enable the admin:
95
    # 'django.contrib.admin',
131
    'django.contrib.admin',
96 132
    # Uncomment the next line to enable admin documentation:
97
    # 'django.contrib.admindocs',
133
    'django.contrib.admindocs',
134
    'django_extensions',
135
    'djcelery',
136
    'peers',
137
    'accounts'
98 138
)
139

  
140
LOGIN_URL = '/fod/welcome'
141

  
142
CACHE_BACKEND = "memcached://127.0.0.1:11211/?timeout=600"
143

  
144
AUTH_PROFILE_MODULE = 'accounts.UserProfile'
145

  
146
NETCONF_DEVICE = ""
147
NETCONF_USER = ""
148
NETCONF_PASS = ""
149
ROUTES_FILTER = "<configuration><routing-options><flow/></routing-options></configuration>"
150
ROUTE_FILTER = "<configuration><routing-options><flow><route><name>%s</name></route></flow></routing-options></configuration>"
151
COMMIT_CONFIRMED_TIMEOUT = "120"
152
EXPIRATION_DAYS_OFFSET = 7
153
COMMIT = True
154

  
155
USE_X_FORWARDED_HOST = True
156

  
157
BROKER_HOST = "localhost"
158
BROKER_PORT = 11300
159
POLLS_TUBE = 'polls'
160
BROKER_VHOST = "/"
161
CELERY_CONCURRENCY = 1
162

  
163
# List of modules to import when celery starts.
164
CELERY_IMPORTS = ("flowspec.tasks", )
165

  
166
## Result store settings.
167
#CELERY_RESULT_BACKEND = "database"
168
#CELERY_RESULT_DBURI = "sqlite:///flowspec_dev.db"
169

  
170
## Broker settings.
171
BROKER_URL = "beanstalk://localhost:11300//"
172

  
173
SHIB_AUTH_AFFILIATION = ''
174
SHIB_ADMIN_DOMAIN = ''
175
SHIB_LOGOUT_URL = 'https://netdev.grnet.gr/Shibboleth.sso/Logout'

Also available in: Unified diff