Merge lp:~ltp-devs/loco-team-portal/django-1-3-upgrade into lp:loco-team-portal

Proposed by Chris Johnston
Status: Merged
Approved by: Adnane Belmadiaf
Approved revision: 593
Merged at revision: 589
Proposed branch: lp:~ltp-devs/loco-team-portal/django-1-3-upgrade
Merge into: lp:loco-team-portal
Diff against target: 352 lines (+48/-33)
21 files modified
loco_directory/local_settings.py.sample (+10/-4)
loco_directory/media/js/comments.js (+1/-1)
loco_directory/settings.py (+14/-5)
loco_directory/templates/base.html (+2/-2)
loco_directory/templates/events/global_event_delete_confirm.html (+1/-1)
loco_directory/templates/events/global_event_new.html (+2/-2)
loco_directory/templates/events/global_event_update.html (+1/-1)
loco_directory/templates/events/team_event_comment_new.inc.html (+1/-1)
loco_directory/templates/events/team_event_delete_confirm.html (+1/-1)
loco_directory/templates/events/team_event_new.html (+1/-1)
loco_directory/templates/events/team_event_register.html (+2/-2)
loco_directory/templates/events/team_event_update.html (+2/-2)
loco_directory/templates/meetings/agenda_item_delete_confirm.html (+1/-1)
loco_directory/templates/meetings/team_meeting_delete_confirm.html (+1/-1)
loco_directory/templates/meetings/team_meeting_new.html (+1/-1)
loco_directory/templates/meetings/team_meeting_update.html (+1/-1)
loco_directory/templates/teams/team_update.html (+1/-1)
loco_directory/templates/venues/venue_update.html (+2/-2)
loco_directory/urls.py (+1/-1)
requirements/dev.txt (+1/-1)
requirements/prod.txt (+1/-1)
To merge this branch: bzr merge lp:~ltp-devs/loco-team-portal/django-1-3-upgrade
Reviewer Review Type Date Requested Status
LoCo Team Portal Developers Pending
Review via email: mp+141273@code.launchpad.net

Commit message

Update LTP to use django 1.3

Description of the change

Update LTP to use django 1.3

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/local_settings.py.sample'
--- loco_directory/local_settings.py.sample 2012-11-16 20:27:29 +0000
+++ loco_directory/local_settings.py.sample 2012-12-26 17:25:24 +0000
@@ -1,7 +1,13 @@
1DATABASE_ENGINE = 'sqlite3' # Change to postgresql_psycopg2 for postgres1DATABASES = {
2DATABASE_NAME = 'loco_directory.db' # sqlite3 file or database name2 'default': {
3#DATABASE_USER = ''3 'ENGINE': 'django.db.backends.sqlite3',
4#DATABASE_PASSWORD = ''4 'NAME': 'ltp.db',
5 'USER': '',
6 'PASSWORD': '',
7 'HOST': '',
8 'PORT': '',
9 },
10}
511
6SECRET_KEY = ''12SECRET_KEY = ''
713
814
=== modified file 'loco_directory/media/js/comments.js'
--- loco_directory/media/js/comments.js 2012-09-08 21:45:10 +0000
+++ loco_directory/media/js/comments.js 2012-12-26 17:25:24 +0000
@@ -39,7 +39,7 @@
39 function updateText(e) {39 function updateText(e) {
40 $(this).hide();40 $(this).hide();
41 orig_comment = $.trim($(this).parent().parent().children("div.comment-comment").text());41 orig_comment = $.trim($(this).parent().parent().children("div.comment-comment").text());
42 $(this).parent().parent().children("div.comment-comment").addClass("selected").html('<form ><textarea class="edit">' + orig_comment + ' </textarea> </form><a href="#" class="save">Save</a> or <a href="#" class="revert">Cancel</a>').unbind('click', updateText);42 $(this).parent().parent().children("div.comment-comment").addClass("selected").html('<form >{% csrf_token %}<textarea class="edit">' + orig_comment + ' </textarea> </form><a href="#" class="save">Save</a> or <a href="#" class="revert">Cancel</a>').unbind('click', updateText);
43 e.preventDefault();43 e.preventDefault();
44 }44 }
4545
4646
=== modified file 'loco_directory/settings.py'
--- loco_directory/settings.py 2012-12-15 03:12:04 +0000
+++ loco_directory/settings.py 2012-12-26 17:25:24 +0000
@@ -53,8 +53,16 @@
53MANAGERS = ADMINS53MANAGERS = ADMINS
54LP_PROJECT_NAME = 'loco-directory'54LP_PROJECT_NAME = 'loco-directory'
5555
56DATABASE_ENGINE = 'sqlite3'56DATABASES = {
57DATABASE_NAME = 'loco_directory.db'57 'default': {
58 'ENGINE': 'django.db.backends.postgresql_psycopg2',
59 'NAME': 'ltp',
60 'USER': 'postgres',
61 'PASSWORD': '',
62 'HOST': 'localhost',
63 'PORT': '',
64 },
65}
5866
59# Local time zone for this installation. Choices can be found here:67# Local time zone for this installation. Choices can be found here:
60# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name68# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
@@ -90,13 +98,13 @@
90# Make this unique, and don't share it with anybody.98# Make this unique, and don't share it with anybody.
91SECRET_KEY = ''99SECRET_KEY = ''
92100
93# List of callables that know how to import templates from various sources.
94TEMPLATE_LOADERS = (101TEMPLATE_LOADERS = (
95 'django.template.loaders.filesystem.load_template_source',102 'django.template.loaders.filesystem.Loader',
96 'django.template.loaders.app_directories.load_template_source',103 'django.template.loaders.app_directories.Loader',
97)104)
98105
99MIDDLEWARE_CLASSES = (106MIDDLEWARE_CLASSES = (
107 'django.middleware.csrf.CsrfViewMiddleware',
100 'django.middleware.common.CommonMiddleware',108 'django.middleware.common.CommonMiddleware',
101 'django.contrib.sessions.middleware.SessionMiddleware',109 'django.contrib.sessions.middleware.SessionMiddleware',
102 'django.contrib.auth.middleware.AuthenticationMiddleware',110 'django.contrib.auth.middleware.AuthenticationMiddleware',
@@ -108,6 +116,7 @@
108 "django.core.context_processors.debug",116 "django.core.context_processors.debug",
109 "django.core.context_processors.i18n",117 "django.core.context_processors.i18n",
110 "django.core.context_processors.media",118 "django.core.context_processors.media",
119 "django.core.context_processors.csrf",
111 "common.context_processors.loco_version",120 "common.context_processors.loco_version",
112 "common.context_processors.google_api_key",121 "common.context_processors.google_api_key",
113 "common.context_processors.flickr_api_key",122 "common.context_processors.flickr_api_key",
114123
=== modified file 'loco_directory/templates/base.html'
--- loco_directory/templates/base.html 2012-12-15 03:12:04 +0000
+++ loco_directory/templates/base.html 2012-12-26 17:25:24 +0000
@@ -52,7 +52,7 @@
52{% endblock %}52{% endblock %}
5353
54{% block search_box %}54{% block search_box %}
55<form id="site_search_form" action="{% url common.views.site_search %}" method="get">55<form id="site_search_form" action="{% url common.views.site_search %}" method="get">{% csrf_token %}
56 {{ search_form.q }}56 {{ search_form.q }}
57 <input type="image" src="/media/img/search.png" title="{% trans "Search" %}" alt="{% trans "Search" %}" />57 <input type="image" src="/media/img/search.png" title="{% trans "Search" %}" alt="{% trans "Search" %}" />
58</form>58</form>
@@ -75,7 +75,7 @@
75{% block footer %}75{% block footer %}
76<div style="height: 40px;">76<div style="height: 40px;">
77 <div class="lang_switcher">77 <div class="lang_switcher">
78 <form name="lang-switcher" style="text-align:right;" action="/language/" method="get">78 <form name="lang-switcher" style="text-align:right;" action="/language/" method="get">{% csrf_token %}
79 <input name="next" type="hidden" value="{{ request.path }}" />79 <input name="next" type="hidden" value="{{ request.path }}" />
80 <select name="lang" onchange="document.forms['lang-switcher'].submit()">80 <select name="lang" onchange="document.forms['lang-switcher'].submit()">
81 {% for lang in languages %}81 {% for lang in languages %}
8282
=== modified file 'loco_directory/templates/events/global_event_delete_confirm.html'
--- loco_directory/templates/events/global_event_delete_confirm.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/events/global_event_delete_confirm.html 2012-12-26 17:25:24 +0000
@@ -10,7 +10,7 @@
10{% block content %}10{% block content %}
11<div class="row">11<div class="row">
12<section class="span-9">12<section class="span-9">
13 <form action="." method="post">13 <form action="." method="post">{% csrf_token %}
14 <fieldset>14 <fieldset>
15 <h3>{% trans "Delete global Event" %}</h3>15 <h3>{% trans "Delete global Event" %}</h3>
16 <label>{% blocktrans with global_event_object.name as eventname %}Do you really want to delete the Global Event: {{eventname}}?{% endblocktrans %}</label>16 <label>{% blocktrans with global_event_object.name as eventname %}Do you really want to delete the Global Event: {{eventname}}?{% endblocktrans %}</label>
1717
=== modified file 'loco_directory/templates/events/global_event_new.html'
--- loco_directory/templates/events/global_event_new.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/events/global_event_new.html 2012-12-26 17:25:24 +0000
@@ -20,12 +20,12 @@
20{% block content %}20{% block content %}
21<div class="row">21<div class="row">
22<section class="span-9">22<section class="span-9">
23 <form action="." method="post">23 <form action="." method="post">{% csrf_token %}
24 <fieldset>24 <fieldset>
25 <h3>{% trans "Add new Global Event" %}</h3>25 <h3>{% trans "Add new Global Event" %}</h3>
26 {{ form.as_template }}26 {{ form.as_template }}
27 </fieldset>27 </fieldset>
28 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 28 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
29 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 29 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
30 </form>30 </form>
31</section>31</section>
3232
=== modified file 'loco_directory/templates/events/global_event_update.html'
--- loco_directory/templates/events/global_event_update.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/events/global_event_update.html 2012-12-26 17:25:24 +0000
@@ -18,7 +18,7 @@
18{% block content %}18{% block content %}
19<div class="row">19<div class="row">
20<section class="span-9">20<section class="span-9">
21 <form action="." method="post">21 <form action="." method="post">{% csrf_token %}
22 <fieldset>22 <fieldset>
23 <h3>{% trans "Update Global Event" %}</h3>23 <h3>{% trans "Update Global Event" %}</h3>
24 {{ form.as_template }}24 {{ form.as_template }}
2525
=== modified file 'loco_directory/templates/events/team_event_comment_new.inc.html'
--- loco_directory/templates/events/team_event_comment_new.inc.html 2012-10-30 12:30:02 +0000
+++ loco_directory/templates/events/team_event_comment_new.inc.html 2012-12-26 17:25:24 +0000
@@ -7,7 +7,7 @@
7 <img alt="" class="photo fn" src="{% if comment.commenter_profile.mugshot %}{{ comment.commenter_profile.mugshot }}{% else %}{{MEDIA_URL}}img/default-mugshot.png{% endif %}">7 <img alt="" class="photo fn" src="{% if comment.commenter_profile.mugshot %}{{ comment.commenter_profile.mugshot }}{% else %}{{MEDIA_URL}}img/default-mugshot.png{% endif %}">
8 </a>8 </a>
9 </div>9 </div>
10 <form action="." method="post">10 <form action="." method="post">{% csrf_token %}
11 <textarea required id="id_comment" rows="10" cols="40" name="comment"></textarea>11 <textarea required id="id_comment" rows="10" cols="40" name="comment"></textarea>
12 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 12 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
13 </form>13 </form>
1414
=== modified file 'loco_directory/templates/events/team_event_delete_confirm.html'
--- loco_directory/templates/events/team_event_delete_confirm.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/events/team_event_delete_confirm.html 2012-12-26 17:25:24 +0000
@@ -10,7 +10,7 @@
10{% block content %}10{% block content %}
11<div class="row">11<div class="row">
12<section class="span-9">12<section class="span-9">
13 <form action="." method="post">13 <form action="." method="post">{% csrf_token %}
14 <fieldset>14 <fieldset>
15 <h3>{% trans "Delete Team Event" %}</h3>15 <h3>{% trans "Delete Team Event" %}</h3>
16 <label>{% blocktrans with team_event_object.name as eventname %}Do you really want to delete the Team Event: {{eventname}}?{% endblocktrans %}</label>16 <label>{% blocktrans with team_event_object.name as eventname %}Do you really want to delete the Team Event: {{eventname}}?{% endblocktrans %}</label>
1717
=== modified file 'loco_directory/templates/events/team_event_new.html'
--- loco_directory/templates/events/team_event_new.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/events/team_event_new.html 2012-12-26 17:25:24 +0000
@@ -26,7 +26,7 @@
26{% block content %}26{% block content %}
27<div class="row">27<div class="row">
28<section class="span-9">28<section class="span-9">
29 <form action="." method="post">29 <form action="." method="post">{% csrf_token %}
30 <fieldset>30 <fieldset>
31 <h3>{% trans "Add new Team Event for " %}{{ team_object.name}}<span class="supporting">{% trans 'is required' %}</span></h3>31 <h3>{% trans "Add new Team Event for " %}{{ team_object.name}}<span class="supporting">{% trans 'is required' %}</span></h3>
32 {{ form.as_template }}32 {{ form.as_template }}
3333
=== modified file 'loco_directory/templates/events/team_event_register.html'
--- loco_directory/templates/events/team_event_register.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/events/team_event_register.html 2012-12-26 17:25:24 +0000
@@ -10,7 +10,7 @@
10{% block content %}10{% block content %}
11<div class="row">11<div class="row">
12<section class="span-9">12<section class="span-9">
13 <form action="." method="post">13 <form action="." method="post">{% csrf_token %}
14 <fieldset>14 <fieldset>
15 <h3>{% trans "Register for event " %}</h3>15 <h3>{% trans "Register for event " %}</h3>
16 {% if is_past_event %}16 {% if is_past_event %}
@@ -18,7 +18,7 @@
18 {% endif %}18 {% endif %}
19 {{ form.as_template }}19 {{ form.as_template }}
20 </fieldset>20 </fieldset>
21 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 21 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
22 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 22 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
23 </form>23 </form>
24</section>24</section>
2525
=== modified file 'loco_directory/templates/events/team_event_update.html'
--- loco_directory/templates/events/team_event_update.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/events/team_event_update.html 2012-12-26 17:25:24 +0000
@@ -18,12 +18,12 @@
18{% block content %}18{% block content %}
19<div class="row">19<div class="row">
20<section class="span-9">20<section class="span-9">
21 <form action="." method="post">21 <form action="." method="post">{% csrf_token %}
22 <fieldset>22 <fieldset>
23 <h3>{% trans "Update Team Event" %}</h3>23 <h3>{% trans "Update Team Event" %}</h3>
24 {{ form.as_template }}24 {{ form.as_template }}
25 </fieldset>25 </fieldset>
26 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 26 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
27 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 27 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
28 </form>28 </form>
29</section>29</section>
3030
=== modified file 'loco_directory/templates/meetings/agenda_item_delete_confirm.html'
--- loco_directory/templates/meetings/agenda_item_delete_confirm.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/meetings/agenda_item_delete_confirm.html 2012-12-26 17:25:24 +0000
@@ -15,7 +15,7 @@
15{% block content %}15{% block content %}
16<div class="row">16<div class="row">
17<section class="span-9">17<section class="span-9">
18 <form action="." method="post">18 <form action="." method="post">{% csrf_token %}
19 <fieldset>19 <fieldset>
20 <h3>{% trans "Delete Agenda Item" %}</h3>20 <h3>{% trans "Delete Agenda Item" %}</h3>
21 {% if agenda_item_object.children.all %}21 {% if agenda_item_object.children.all %}
2222
=== modified file 'loco_directory/templates/meetings/team_meeting_delete_confirm.html'
--- loco_directory/templates/meetings/team_meeting_delete_confirm.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/meetings/team_meeting_delete_confirm.html 2012-12-26 17:25:24 +0000
@@ -10,7 +10,7 @@
10{% block content %}10{% block content %}
11<div class="row">11<div class="row">
12<section class="span-9">12<section class="span-9">
13 <form action="." method="post">13 <form action="." method="post">{% csrf_token %}
14 <fieldset>14 <fieldset>
15 <h3>{% trans "Delete Team Meeting" %}</h3>15 <h3>{% trans "Delete Team Meeting" %}</h3>
16 <label>{% blocktrans with team_meeting_object.name as meetingname %}Do you really want to delete the Team Meeting: {{meetingname}}?{% endblocktrans %}</label>16 <label>{% blocktrans with team_meeting_object.name as meetingname %}Do you really want to delete the Team Meeting: {{meetingname}}?{% endblocktrans %}</label>
1717
=== modified file 'loco_directory/templates/meetings/team_meeting_new.html'
--- loco_directory/templates/meetings/team_meeting_new.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/meetings/team_meeting_new.html 2012-12-26 17:25:24 +0000
@@ -18,7 +18,7 @@
18{% block content %}18{% block content %}
19<div class="row">19<div class="row">
20 <section class="span-9">20 <section class="span-9">
21 <form action="." method="post">21 <form action="." method="post">{% csrf_token %}
22 <fieldset>22 <fieldset>
23 <h3>{% trans "Add new Team Meeting for " %}{{ team_object.name}}</h3>23 <h3>{% trans "Add new Team Meeting for " %}{{ team_object.name}}</h3>
24 {{ form.as_template }}24 {{ form.as_template }}
2525
=== modified file 'loco_directory/templates/meetings/team_meeting_update.html'
--- loco_directory/templates/meetings/team_meeting_update.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/meetings/team_meeting_update.html 2012-12-26 17:25:24 +0000
@@ -18,7 +18,7 @@
18{% block content %}18{% block content %}
19<div class="row">19<div class="row">
20 <section class="span-9">20 <section class="span-9">
21 <form action="." method="post">21 <form action="." method="post">{% csrf_token %}
22 <fieldset>22 <fieldset>
23 <h3>{% trans "Update Team Meeting" %}</h3>23 <h3>{% trans "Update Team Meeting" %}</h3>
24 {{ form.as_template }}24 {{ form.as_template }}
2525
=== modified file 'loco_directory/templates/teams/team_update.html'
--- loco_directory/templates/teams/team_update.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/teams/team_update.html 2012-12-26 17:25:24 +0000
@@ -31,7 +31,7 @@
31 </p>31 </p>
32 {% endif %}32 {% endif %}
3333
34 <form action="{{ request.path_info }}" method="POST">34 <form action="{{ request.path_info }}" method="POST">{% csrf_token %}
35 <fieldset>35 <fieldset>
36 <h3>{% trans "Update the information below" %}</h3>36 <h3>{% trans "Update the information below" %}</h3>
37 {{ form.as_template }}37 {{ form.as_template }}
3838
=== modified file 'loco_directory/templates/venues/venue_update.html'
--- loco_directory/templates/venues/venue_update.html 2012-06-07 04:19:26 +0000
+++ loco_directory/templates/venues/venue_update.html 2012-12-26 17:25:24 +0000
@@ -25,12 +25,12 @@
25{% block content %}25{% block content %}
26<div class="row">26<div class="row">
27<section class="span-9">27<section class="span-9">
28 <form action="." method="post" style="width:auto;">28 <form action="." method="post" style="width:auto;">{% csrf_token %}
29 <fieldset>29 <fieldset>
30 <h3>{% if venue_object %}{% trans "Update Venue" %}{% else %}{% trans "New Venue" %}{% endif %}</h3>30 <h3>{% if venue_object %}{% trans "Update Venue" %}{% else %}{% trans "New Venue" %}{% endif %}</h3>
31 {{ form.as_template }}31 {{ form.as_template }}
32 </fieldset>32 </fieldset>
33 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 33 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
34 <input type="submit" name="submit" value="Submit" class="submit-button" /> 34 <input type="submit" name="submit" value="Submit" class="submit-button" />
35 </form>35 </form>
36</section>36</section>
3737
=== modified file 'loco_directory/urls.py'
--- loco_directory/urls.py 2012-12-13 22:48:12 +0000
+++ loco_directory/urls.py 2012-12-26 17:25:24 +0000
@@ -26,7 +26,7 @@
26 url(r'^about-loco/setup/$', 'common.views.loco_setup', name='loco_setup'),26 url(r'^about-loco/setup/$', 'common.views.loco_setup', name='loco_setup'),
27 url(r'^about-loco/$', 'common.views.about_loco', name='about_loco'),27 url(r'^about-loco/$', 'common.views.about_loco', name='about_loco'),
28 url(r'^using-locodir/$', 'common.views.using_locodir', name='using_locodir'),28 url(r'^using-locodir/$', 'common.views.using_locodir', name='using_locodir'),
29 url(r'^admin/(.*)', admin.site.root),29 (r'^admin/', include(admin.site.urls)),
30 url(r'^data/xml', 'teams.views.xml_team_data', name='xml_team_data'),30 url(r'^data/xml', 'teams.views.xml_team_data', name='xml_team_data'),
31 url(r'^teams/', include('teams.urls')),31 url(r'^teams/', include('teams.urls')),
32 url(r'^planet/', include('articles.urls')),32 url(r'^planet/', include('articles.urls')),
3333
=== modified file 'requirements/dev.txt'
--- requirements/dev.txt 2012-11-26 00:02:28 +0000
+++ requirements/dev.txt 2012-12-26 17:25:24 +0000
@@ -6,7 +6,7 @@
6# include patches applied by the package maintainers.6# include patches applied by the package maintainers.
7#7#
88
9Django==1.1.39Django==1.3.3
10South==0.7.310South==0.7.3
11distribute==0.6.1011distribute==0.6.10
12django-openid-auth==0.412django-openid-auth==0.4
1313
=== modified file 'requirements/prod.txt'
--- requirements/prod.txt 2012-11-16 18:33:47 +0000
+++ requirements/prod.txt 2012-12-26 17:25:24 +0000
@@ -6,7 +6,7 @@
6# include patches applied by the package maintainers.6# include patches applied by the package maintainers.
7#7#
88
9Django==1.1.39Django==1.3.3
10South==0.7.310South==0.7.3
11bzr==2.6b211bzr==2.6b2
12distribute==0.6.1012distribute==0.6.10

Subscribers

People subscribed via source and target branches