Merge lp:~daker/loco-team-portal/fix.1088088 into lp:loco-team-portal

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Adnane Belmadiaf
Approved revision: 572
Merged at revision: 572
Proposed branch: lp:~daker/loco-team-portal/fix.1088088
Merge into: lp:loco-team-portal
Diff against target: 55 lines (+8/-9)
1 file modified
loco_directory/settings.py (+8/-9)
To merge this branch: bzr merge lp:~daker/loco-team-portal/fix.1088088
Reviewer Review Type Date Requested Status
LoCo Team Portal Developers Pending
Review via email: mp+138877@code.launchpad.net

Commit message

Fixed settings.py

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'loco_directory/settings.py'
--- loco_directory/settings.py 2012-11-27 21:52:42 +0000
+++ loco_directory/settings.py 2012-12-09 01:07:23 +0000
@@ -5,8 +5,6 @@
5from common import utils5from common import utils
6import logging6import logging
77
8import logging
9
10st_handler = logging.StreamHandler(sys.stderr)8st_handler = logging.StreamHandler(sys.stderr)
11formatter = logging.Formatter("[%(asctime)s] - %(levelname)s - %(module)s - %(message)s")9formatter = logging.Formatter("[%(asctime)s] - %(levelname)s - %(module)s - %(message)s")
12st_handler.setFormatter(formatter)10st_handler.setFormatter(formatter)
@@ -25,7 +23,8 @@
25 pass23 pass
26 except:24 except:
27 if not 'init' in sys.argv:25 if not 'init' in sys.argv:
28 print "You will need to run ./manage.py init to make the LoCo Team Portal fully work."26 log.error('You will need to run ./manage.py init to make ' \
27 'the LoCo Team Portal fully work.')
2928
30# Check for necessary modules29# Check for necessary modules
31modules = {30modules = {
@@ -47,10 +46,6 @@
47STATIC_SERVE = True46STATIC_SERVE = True
48USE_DEBUG_TOOLBAR = False47USE_DEBUG_TOOLBAR = False
4948
50OPENID_STRICT_USERNAMES = True
51OPENID_FOLLOW_RENAMES = True
52OPENID_SREG_REQUIRED_FIELDS = ['email', ]
53
54VERSION_STRING = utils.get_locodirectory_version(49VERSION_STRING = utils.get_locodirectory_version(
55 os.path.join(PROJECT_PATH, "version"),50 os.path.join(PROJECT_PATH, "version"),
56 DEBUG)51 DEBUG)
@@ -168,6 +163,12 @@
168163
169AUTH_PROFILE_MODULE = 'userprofiles.UserProfile'164AUTH_PROFILE_MODULE = 'userprofiles.UserProfile'
170165
166
167OPENID_STRICT_USERNAMES = True
168OPENID_FOLLOW_RENAMES = True
169OPENID_SREG_REQUIRED_FIELDS = ['email', ]
170
171
171# Should users be created when new OpenIDs are used to log in?172# Should users be created when new OpenIDs are used to log in?
172OPENID_CREATE_USERS = True173OPENID_CREATE_USERS = True
173174
@@ -185,8 +186,6 @@
185# Automatically map lp team membership to ld group membership186# Automatically map lp team membership to ld group membership
186OPENID_LAUNCHPAD_TEAMS_MAPPING_AUTO = True187OPENID_LAUNCHPAD_TEAMS_MAPPING_AUTO = True
187188
188OPENID_SREG_REQUIRED_FIELDS = ['email']
189
190# Tell django.contrib.auth to use the OpenID signin URLs.189# Tell django.contrib.auth to use the OpenID signin URLs.
191LOGIN_URL = '/openid/login'190LOGIN_URL = '/openid/login'
192LOGIN_REDIRECT_URL = '/'191LOGIN_REDIRECT_URL = '/'

Subscribers

People subscribed via source and target branches