80
81
# 'django.template.loaders.eggs.Loader',
84
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
85
'uploads.context_processor.user_context',
83
88
MIDDLEWARE_CLASSES = (
84
89
'django.middleware.common.CommonMiddleware',
85
90
'django.contrib.sessions.middleware.SessionMiddleware',
114
119
'django.contrib.sites',
115
120
'django.contrib.messages',
116
121
'django.contrib.staticfiles',
117
# Uncomment the next line to enable the admin:
122
'django_openid_auth',
118
123
'django.contrib.admin',
119
124
# Uncomment the next line to enable admin documentation:
120
125
# 'django.contrib.admindocs',
129
# OpenID and Launchpad intigration
130
AUTHENTICATION_BACKENDS = (
131
'django_openid_auth.auth.OpenIDBackend',
132
'django.contrib.auth.backends.ModelBackend',
135
OPENID_CREATE_USERS = True
136
LOGIN_URL = '/openid/login/'
137
LOGIN_REDIRECT_URL = '/'
138
OPENID_SSO_SERVER_URL = 'server-endpoint-url'
139
OPENID_SSO_SERVER_URL = 'https://login.ubuntu.com/'
140
OPENID_LAUNCHPAD_STAFF_TEAMS = ['ubuntu-developer-advisory-team']
141
OPENID_LAUNCHPAD_TEAMS_MAPPING_AUTO = True
142
OPENID_UPDATE_DETAILS_FROM_SREG = True
143
OPENID_USE_AS_ADMIN_LOGIN = True
144
OPENID_FOLLOW_RENAMES = True
145
OPENID_STRICT_USERNAMES = True
146
# Currently we allow DAT, CC, DMB to see everything. This could
147
# be extended at some point to give other teams (say Ubuntu Members)
148
# the ability to see anonymous data.
149
ALLOWED_LAUNCHPAD_TEAMS = ['ubuntu-developer-advisory-team',
150
'developer-membership-board',
124
153
DATABASE_ROUTERS = ['uploads.router.DBRouter']
126
155
# A sample logging configuration. The only tangible logging