Merge lp:~cjohnston/loco-team-portal/init-changes-fixes into lp:loco-team-portal

Proposed by Chris Johnston
Status: Merged
Approved by: Adnane Belmadiaf
Approved revision: 537
Merged at revision: 537
Proposed branch: lp:~cjohnston/loco-team-portal/init-changes-fixes
Merge into: lp:loco-team-portal
Diff against target: 57 lines (+9/-7)
3 files modified
Makefile (+1/-1)
TRANSITION.TO.0.2 (+1/-1)
loco_directory/settings.py (+7/-5)
To merge this branch: bzr merge lp:~cjohnston/loco-team-portal/init-changes-fixes
Reviewer Review Type Date Requested Status
Adnane Belmadiaf Approve
LoCo Team Portal Developers Pending
Review via email: mp+112877@code.launchpad.net

Commit message

Moves init-ld to common, renames init-ld to init for easier use between projects, fixes the error where manage.py would tell you that you need to run init even after you ran it.

To post a comment you must log in.
Revision history for this message
Adnane Belmadiaf (daker) wrote :

Good work.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2012-05-27 16:22:47 +0000
3+++ Makefile 2012-06-30 00:33:19 +0000
4@@ -7,7 +7,7 @@
5 projectroot=$(shell pwd |sed -e 's/\//\\\//g')
6
7 init: env db
8- $(django_manage) init-ld
9+ $(django_manage) init
10
11 env:
12 virtualenv --clear --no-site-packages --python=/usr/bin/python2.6 env
13
14=== modified file 'TRANSITION.TO.0.2'
15--- TRANSITION.TO.0.2 2010-08-20 13:05:47 +0000
16+++ TRANSITION.TO.0.2 2012-06-30 00:33:19 +0000
17@@ -21,7 +21,7 @@
18 4. $ ./manage.py syncdb
19 5. $ ./manage.py migrate teams 0001 --fake
20 6. $ ./manage.py migrate
21-7. Update translations, set up jquery symlinks, etc.: $ ./manage.py init-ld
22+7. Update translations, set up jquery symlinks, etc.: $ ./manage.py init
23
24 = Enable =
25 1. Enable loco-directory service (a2ensite loco.ubuntu.com)
26
27=== renamed file 'loco_directory/teams/management/commands/init-ld.py' => 'loco_directory/common/management/commands/init.py'
28=== modified file 'loco_directory/settings.py'
29--- loco_directory/settings.py 2012-06-20 10:32:02 +0000
30+++ loco_directory/settings.py 2012-06-30 00:33:19 +0000
31@@ -10,10 +10,12 @@
32 import ubuntu_website
33 uw_import = True
34 except ImportError:
35- if not 'init-ld' in sys.argv:
36- print "You will need to run ./manage.py init-ld to make the LoCo Team Portal fully work."
37- else:
38+ try:
39+ import bzr_apps
40 pass
41+ except:
42+ if not 'init' in sys.argv:
43+ print "You will need to run ./manage.py init to make the LoCo Team Portal fully work."
44
45 # Check for necessary modules
46 modules = {
47@@ -38,8 +40,8 @@
48 OPENID_FOLLOW_RENAMES = True
49
50 VERSION_STRING = utils.get_locodirectory_version(
51- os.path.join(PROJECT_PATH, "version"),
52- DEBUG)
53+ os.path.join(PROJECT_PATH, "version"),
54+ DEBUG)
55
56 ADMINS = (
57 ('somebody', 'somebody@example.com'),

Subscribers

People subscribed via source and target branches