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
=== modified file 'Makefile'
--- Makefile 2012-05-27 16:22:47 +0000
+++ Makefile 2012-06-30 00:33:19 +0000
@@ -7,7 +7,7 @@
7projectroot=$(shell pwd |sed -e 's/\//\\\//g')7projectroot=$(shell pwd |sed -e 's/\//\\\//g')
88
9init: env db9init: env db
10 $(django_manage) init-ld10 $(django_manage) init
1111
12env:12env:
13 virtualenv --clear --no-site-packages --python=/usr/bin/python2.6 env13 virtualenv --clear --no-site-packages --python=/usr/bin/python2.6 env
1414
=== modified file 'TRANSITION.TO.0.2'
--- TRANSITION.TO.0.2 2010-08-20 13:05:47 +0000
+++ TRANSITION.TO.0.2 2012-06-30 00:33:19 +0000
@@ -21,7 +21,7 @@
214. $ ./manage.py syncdb214. $ ./manage.py syncdb
225. $ ./manage.py migrate teams 0001 --fake225. $ ./manage.py migrate teams 0001 --fake
236. $ ./manage.py migrate236. $ ./manage.py migrate
247. Update translations, set up jquery symlinks, etc.: $ ./manage.py init-ld247. Update translations, set up jquery symlinks, etc.: $ ./manage.py init
2525
26= Enable =26= Enable =
271. Enable loco-directory service (a2ensite loco.ubuntu.com)271. Enable loco-directory service (a2ensite loco.ubuntu.com)
2828
=== renamed file 'loco_directory/teams/management/commands/init-ld.py' => 'loco_directory/common/management/commands/init.py'
=== modified file 'loco_directory/settings.py'
--- loco_directory/settings.py 2012-06-20 10:32:02 +0000
+++ loco_directory/settings.py 2012-06-30 00:33:19 +0000
@@ -10,10 +10,12 @@
10 import ubuntu_website10 import ubuntu_website
11 uw_import = True11 uw_import = True
12except ImportError:12except ImportError:
13 if not 'init-ld' in sys.argv:13 try:
14 print "You will need to run ./manage.py init-ld to make the LoCo Team Portal fully work."14 import bzr_apps
15 else:
16 pass15 pass
16 except:
17 if not 'init' in sys.argv:
18 print "You will need to run ./manage.py init to make the LoCo Team Portal fully work."
1719
18# Check for necessary modules20# Check for necessary modules
19modules = {21modules = {
@@ -38,8 +40,8 @@
38OPENID_FOLLOW_RENAMES = True40OPENID_FOLLOW_RENAMES = True
3941
40VERSION_STRING = utils.get_locodirectory_version(42VERSION_STRING = utils.get_locodirectory_version(
41 os.path.join(PROJECT_PATH, "version"),43 os.path.join(PROJECT_PATH, "version"),
42 DEBUG)44 DEBUG)
4345
44ADMINS = (46ADMINS = (
45 ('somebody', 'somebody@example.com'),47 ('somebody', 'somebody@example.com'),

Subscribers

People subscribed via source and target branches