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
1=== modified file 'loco_directory/settings.py'
2--- loco_directory/settings.py 2012-11-27 21:52:42 +0000
3+++ loco_directory/settings.py 2012-12-09 01:07:23 +0000
4@@ -5,8 +5,6 @@
5 from common import utils
6 import logging
7
8-import logging
9-
10 st_handler = logging.StreamHandler(sys.stderr)
11 formatter = logging.Formatter("[%(asctime)s] - %(levelname)s - %(module)s - %(message)s")
12 st_handler.setFormatter(formatter)
13@@ -25,7 +23,8 @@
14 pass
15 except:
16 if not 'init' in sys.argv:
17- print "You will need to run ./manage.py init to make the LoCo Team Portal fully work."
18+ log.error('You will need to run ./manage.py init to make ' \
19+ 'the LoCo Team Portal fully work.')
20
21 # Check for necessary modules
22 modules = {
23@@ -47,10 +46,6 @@
24 STATIC_SERVE = True
25 USE_DEBUG_TOOLBAR = False
26
27-OPENID_STRICT_USERNAMES = True
28-OPENID_FOLLOW_RENAMES = True
29-OPENID_SREG_REQUIRED_FIELDS = ['email', ]
30-
31 VERSION_STRING = utils.get_locodirectory_version(
32 os.path.join(PROJECT_PATH, "version"),
33 DEBUG)
34@@ -168,6 +163,12 @@
35
36 AUTH_PROFILE_MODULE = 'userprofiles.UserProfile'
37
38+
39+OPENID_STRICT_USERNAMES = True
40+OPENID_FOLLOW_RENAMES = True
41+OPENID_SREG_REQUIRED_FIELDS = ['email', ]
42+
43+
44 # Should users be created when new OpenIDs are used to log in?
45 OPENID_CREATE_USERS = True
46
47@@ -185,8 +186,6 @@
48 # Automatically map lp team membership to ld group membership
49 OPENID_LAUNCHPAD_TEAMS_MAPPING_AUTO = True
50
51-OPENID_SREG_REQUIRED_FIELDS = ['email']
52-
53 # Tell django.contrib.auth to use the OpenID signin URLs.
54 LOGIN_URL = '/openid/login'
55 LOGIN_REDIRECT_URL = '/'

Subscribers

People subscribed via source and target branches