Merge lp:~lucyllewy/loco-team-portal/django-1.4 into lp:loco-team-portal

Proposed by Lucy Llewellyn
Status: Needs review
Proposed branch: lp:~lucyllewy/loco-team-portal/django-1.4
Merge into: lp:loco-team-portal
Diff against target: 202 lines (+26/-28)
14 files modified
loco_directory/events/feeds.py (+1/-1)
loco_directory/events/urls.py (+1/-1)
loco_directory/manage.py (+6/-8)
loco_directory/meetings/feeds.py (+1/-1)
loco_directory/meetings/urls.py (+1/-1)
loco_directory/services/urls.py (+1/-1)
loco_directory/settings.py (+1/-1)
loco_directory/teams/feeds.py (+1/-1)
loco_directory/teams/urls.py (+1/-1)
loco_directory/urls.py (+2/-2)
loco_directory/userprofiles/urls.py (+1/-1)
loco_directory/venues/urls.py (+1/-1)
requirements/dev.txt (+4/-4)
requirements/prod.txt (+4/-4)
To merge this branch: bzr merge lp:~lucyllewy/loco-team-portal/django-1.4
Reviewer Review Type Date Requested Status
Adnane Belmadiaf Approve
Review via email: mp+302107@code.launchpad.net

Description of the change

Update to django 1.4

To post a comment you must log in.
Revision history for this message
Lucy Llewellyn (lucyllewy) wrote :

I'm working on upgrading beyond 1.4 through to 1.10. I'm doing this piecemeal so that it is easy to see every step in the journey and be able to rollback if needed.

Revision history for this message
Adnane Belmadiaf (daker) wrote :

Sorry it took me so long, but this looks good and tests are passing.

review: Approve
Revision history for this message
Lucy Llewellyn (lucyllewy) wrote :

Is there anything further I need to do? I see, Adnane, you approved the change, but I'm unclear what the next steps are to get this merged into the main branch, as I'm not a member of the project team so can't do it myself.

Unmerged revisions

685. By Lucy Llewellyn

update to django 1.4

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/events/feeds.py'
2--- loco_directory/events/feeds.py 2013-03-31 01:15:06 +0000
3+++ loco_directory/events/feeds.py 2016-08-05 01:15:41 +0000
4@@ -1,6 +1,6 @@
5 # -*- coding: utf-8 -*-
6 from django.core.urlresolvers import reverse
7-from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
8+from django.contrib.syndication.views import Feed, FeedDoesNotExist
9 from django.utils.translation import ugettext as _
10 from django.utils import translation
11 from django.template import loader, Context
12
13=== modified file 'loco_directory/events/urls.py'
14--- loco_directory/events/urls.py 2013-03-11 21:49:37 +0000
15+++ loco_directory/events/urls.py 2016-08-05 01:15:41 +0000
16@@ -1,5 +1,5 @@
17 # -*- coding: utf-8 -*-
18-from django.conf.urls.defaults import *
19+from django.conf.urls import *
20
21 urlpatterns = patterns('',
22 #all events
23
24=== modified file 'loco_directory/manage.py'
25--- loco_directory/manage.py 2011-06-29 18:35:40 +0000
26+++ loco_directory/manage.py 2016-08-05 01:15:41 +0000
27@@ -1,11 +1,9 @@
28 #!/usr/bin/env python
29-from django.core.management import execute_manager
30-try:
31- import settings # Assumed to be in the same directory.
32-except ImportError:
33- import sys
34- sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
35- sys.exit(1)
36+import os, sys
37
38 if __name__ == "__main__":
39- execute_manager(settings)
40+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
41+
42+ from django.core.management import execute_from_command_line
43+
44+ execute_from_command_line(sys.argv)
45\ No newline at end of file
46
47=== modified file 'loco_directory/meetings/feeds.py'
48--- loco_directory/meetings/feeds.py 2013-03-31 01:10:52 +0000
49+++ loco_directory/meetings/feeds.py 2016-08-05 01:15:41 +0000
50@@ -1,6 +1,6 @@
51 # -*- coding: utf-8 -*-
52 from django.core.urlresolvers import reverse
53-from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
54+from django.contrib.syndication.views import Feed, FeedDoesNotExist
55 from django.utils import translation
56 from django.template import loader, Context
57
58
59=== modified file 'loco_directory/meetings/urls.py'
60--- loco_directory/meetings/urls.py 2013-04-14 23:00:20 +0000
61+++ loco_directory/meetings/urls.py 2016-08-05 01:15:41 +0000
62@@ -1,4 +1,4 @@
63-from django.conf.urls.defaults import *
64+from django.conf.urls import *
65
66 urlpatterns = patterns('',
67 #all meetings
68
69=== modified file 'loco_directory/services/urls.py'
70--- loco_directory/services/urls.py 2011-01-22 16:05:24 +0000
71+++ loco_directory/services/urls.py 2016-08-05 01:15:41 +0000
72@@ -3,7 +3,7 @@
73
74 @author: mhall
75 '''
76-from django.conf.urls.defaults import *
77+from django.conf.urls import *
78
79 urlpatterns = patterns('',
80 #venues
81
82=== modified file 'loco_directory/settings.py'
83--- loco_directory/settings.py 2013-03-31 01:10:52 +0000
84+++ loco_directory/settings.py 2016-08-05 01:15:41 +0000
85@@ -128,7 +128,7 @@
86 "common.context_processors.languages_menu",
87 )
88
89-ROOT_URLCONF = 'loco_directory.urls'
90+ROOT_URLCONF = 'urls'
91
92 TEMPLATE_DIRS = (
93 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
94
95=== modified file 'loco_directory/teams/feeds.py'
96--- loco_directory/teams/feeds.py 2013-03-31 01:10:52 +0000
97+++ loco_directory/teams/feeds.py 2016-08-05 01:15:41 +0000
98@@ -1,5 +1,5 @@
99 # -*- coding: utf-8 -*-
100-from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
101+from django.contrib.syndication.views import Feed, FeedDoesNotExist
102 from django.utils.translation import ugettext as _
103 from django.utils import translation
104
105
106=== modified file 'loco_directory/teams/urls.py'
107--- loco_directory/teams/urls.py 2013-02-19 22:23:46 +0000
108+++ loco_directory/teams/urls.py 2016-08-05 01:15:41 +0000
109@@ -1,4 +1,4 @@
110-from django.conf.urls.defaults import *
111+from django.conf.urls import *
112
113 urlpatterns = patterns('',
114 url(r'^$', 'teams.views.team_list', name='team-list'),
115
116=== modified file 'loco_directory/urls.py'
117--- loco_directory/urls.py 2013-10-30 00:31:14 +0000
118+++ loco_directory/urls.py 2016-08-05 01:15:41 +0000
119@@ -1,4 +1,4 @@
120-from django.conf.urls.defaults import *
121+from django.conf.urls import *
122 from django.conf import settings
123 from django.contrib import admin
124 import ubuntu_website
125@@ -42,7 +42,7 @@
126 url(r'^jsi18n', 'django.views.i18n.javascript_catalog', name='jsi18n'),
127 url(r'^services/', include('services.urls')),
128 url(r'^search/', 'common.views.site_search', name='site_search'),
129- url(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}, name='feed_view'),
130+ url(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.Feed', {'feed_dict': feeds}, name='feed_view'),
131 url(r'^', include('userprofiles.urls')),
132 )
133
134
135=== modified file 'loco_directory/userprofiles/urls.py'
136--- loco_directory/userprofiles/urls.py 2013-03-11 21:49:37 +0000
137+++ loco_directory/userprofiles/urls.py 2016-08-05 01:15:41 +0000
138@@ -1,5 +1,5 @@
139 # -*- coding: utf-8 -*-
140-from django.conf.urls.defaults import *
141+from django.conf.urls import *
142
143 urlpatterns = patterns('userprofiles.views',
144 url(r'^(?P<username>[-+.\w]+)/$', 'profile_detail', name='profile-detail'),
145
146=== modified file 'loco_directory/venues/urls.py'
147--- loco_directory/venues/urls.py 2013-02-21 20:31:16 +0000
148+++ loco_directory/venues/urls.py 2016-08-05 01:15:41 +0000
149@@ -1,4 +1,4 @@
150-from django.conf.urls.defaults import url, patterns
151+from django.conf.urls import url, patterns
152
153 urlpatterns = patterns('',
154 #venues
155
156=== modified file 'requirements/dev.txt'
157--- requirements/dev.txt 2014-05-15 22:50:21 +0000
158+++ requirements/dev.txt 2016-08-05 01:15:41 +0000
159@@ -6,14 +6,14 @@
160 # include patches applied by the package maintainers.
161 #
162
163-Django==1.3.3
164+Django==1.4
165 South==0.7.3
166-distribute==0.6.10
167-django-openid-auth==0.4
168+setuptools==25.1.4
169+django-openid-auth==0.5
170 python-openid==2.2.4
171 pytz==2010b
172 python-dateutil==1.5
173-vobject==0.8.1c
174+vobject==0.9.2
175 simplejson==2.0.9
176 feedparser
177 python-gettext
178
179=== modified file 'requirements/prod.txt'
180--- requirements/prod.txt 2016-02-12 00:54:37 +0000
181+++ requirements/prod.txt 2016-08-05 01:15:41 +0000
182@@ -6,16 +6,16 @@
183 # include patches applied by the package maintainers.
184 #
185
186-Django==1.3.3
187+Django==1.4
188 South==0.7.3
189-distribute==0.6.10
190-django-openid-auth==0.4
191+setuptools==25.1.4
192+django-openid-auth==0.5
193 # pyscopg is only needed for production like environments
194 # psycopg2==2.0.13
195 python-openid==2.2.4
196 pytz==2010b
197 python-dateutil==1.5
198-vobject==0.8.2
199+vobject==0.9.2
200 simplejson==2.0.9
201 feedparser
202 python-gettext

Subscribers

People subscribed via source and target branches