~andrewsomething/dat-overview/lp1189808

« back to all changes in this revision

Viewing changes to overview/settings.py

  • Committer: Daniel Holbach
  • Date: 2013-04-10 10:22:03 UTC
  • mfrom: (12.1.5 openid)
  • Revision ID: daniel.holbach@canonical.com-20130410102203-kdm46g9yob6nn78w
mergedĀ lp:~andrewsomething/dat-overview/openid_support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
 
2
from django.conf import global_settings
2
3
 
3
4
# Django settings for contributors project.
4
5
 
80
81
#     'django.template.loaders.eggs.Loader',
81
82
)
82
83
 
 
84
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
 
85
    'uploads.context_processor.user_context',
 
86
)
 
87
 
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',
121
126
    'uploads',
122
127
)
123
128
 
 
129
# OpenID and Launchpad intigration
 
130
AUTHENTICATION_BACKENDS = (
 
131
    'django_openid_auth.auth.OpenIDBackend',
 
132
    'django.contrib.auth.backends.ModelBackend',
 
133
)
 
134
 
 
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',
 
151
                           'communitycouncil']
 
152
 
124
153
DATABASE_ROUTERS = ['uploads.router.DBRouter']
125
154
 
126
155
# A sample logging configuration. The only tangible logging