Merge lp:~cjohnston/summit/bzr_apps into lp:summit
- bzr_apps
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Nigel Babu |
Approved revision: | 142 |
Merged at revision: | 142 |
Proposed branch: | lp:~cjohnston/summit/bzr_apps |
Merge into: | lp:summit |
Diff against target: |
390 lines (+113/-159) 7 files modified
.bzrignore (+2/-6) summit/media/css/twidenash.css (+36/-18) summit/media/twidenash.js (+0/-122) summit/schedule/management/commands/init-summit.py (+28/-0) summit/schedule/templates/schedule/index.html (+12/-2) summit/settings.py (+34/-10) summit/urls.py (+1/-1) |
To merge this branch: | bzr merge lp:~cjohnston/summit/bzr_apps |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nigel Babu (community) | Approve | ||
Chris Johnston | Needs Resubmitting | ||
Review via email:
|
Commit message
Switches summit to using bzr_apps by running init-summit.
Description of the change
- 126. By Chris Johnston
-
[r=][] Fixes minor spelling error
- 127. By Chris Johnston
-
[r=][] Updates required version of south
- 128. By Chris Johnston
-
[r=chrisjohnston][] Fixes a minor spelling issue in fields.py
- 129. By Michael Hall
-
[r=mhall119]
[781117] Changes /today url to /summit_name/today - 130. By Chris Johnston
-
[r=mhall119]
[793020] Modifies links to match uds.ubuntu.com - 131. By Chris Johnston
-
[r=mhall119]
[765031] Adds private room as an option for a room status. - 132. By Chris Johnston
-
[r=mhall119][] Adds update-openids script to summit to fix usernames.
- 133. By Michael Hall
-
Merge from 1.x
- 134. By Michael Hall
-
Merge from 1.x
- 135. By Michael Hall
-
Merge from 1.x
- 136. By Chris Johnston
-
[r=mhall119][] Removes old migrations and adds new initial migration
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nigel Babu (nigelbabu) wrote : | # |
- 137. By Nigel Babu
-
[r=][] Create a docs so that it shows up in rtfd.org
- 138. By Chris Johnston
-
[r=nigelbabu][] Remove translation tags, summit is not translated.
- 139. By Nigel Babu
-
[r=mhall119] Reset the theme of the documentation to default.
- 140. By Chris Johnston
-
Updating trunk from 1.x
- 141. By Chris Johnston
-
[r=nigelbabu] Adds a link to the page for editing an etherpad
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chris Johnston (cjohnston) wrote : | # |
We aren't.. That's bzrignore
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chris Johnston (cjohnston) wrote : | # |
We don't need it though now that we use a current version of south.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nigel Babu (nigelbabu) wrote : | # |
11 +summit/.hgignore
12 +summit/.hgtags
Those are hg dotfiles. If we don't need them, remove and update the MP.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chris Johnston (cjohnston) : | # |
- 142. By Chris Johnston
-
Removes conflicts
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nigel Babu (nigelbabu) wrote : | # |
When, I do ./manage.py init-summit, I get
You will need to run ./manage.py init-summit to make Summit fully work.
You will need to run ./manage.py init-summit to make Summit fully work.
I think we shouldn't show this if you're actually calling the init-summit command.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chris Johnston (cjohnston) wrote : | # |
LoCo Directory has done the same thing for a year.. I filed a bug against it. https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nigel Babu (nigelbabu) wrote : | # |
Could you also add a summit task to that bug?
Preview Diff
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2011-05-15 01:11:24 +0000 | |||
3 | +++ .bzrignore 2011-08-12 14:28:26 +0000 | |||
4 | @@ -4,9 +4,5 @@ | |||
5 | 4 | summit/summit.db | 4 | summit/summit.db |
6 | 5 | summit/ubuntu_website | 5 | summit/ubuntu_website |
7 | 6 | summit/linaro_website | 6 | summit/linaro_website |
14 | 7 | summit/docs | 7 | bzr_apps |
15 | 8 | summit/south | 8 | summit/media/js/twidenash |
10 | 9 | summit/.hgignore | ||
11 | 10 | summit/.hg_archival.txt | ||
12 | 11 | summit/.hgtags | ||
13 | 12 | summit/setup.py | ||
16 | 13 | 9 | ||
17 | === modified file 'summit/media/css/twidenash.css' | |||
18 | --- summit/media/css/twidenash.css 2010-08-30 14:30:29 +0000 | |||
19 | +++ summit/media/css/twidenash.css 2011-08-12 14:28:26 +0000 | |||
20 | @@ -1,20 +1,38 @@ | |||
39 | 1 | ul.twidenash li { | 1 | /* |
40 | 2 | list-style-type: none; | 2 | * twidenash.css |
41 | 3 | clear: both; | 3 | * |
42 | 4 | padding: 3px; | 4 | * twidenash CSS stuff. |
43 | 5 | font-size: 100%; | 5 | * |
44 | 6 | } | 6 | * Author: Michael Hall ( mhall119 ) |
45 | 7 | ul.twidenash li img { | 7 | */ |
46 | 8 | float: left; | 8 | |
47 | 9 | vertical-align: top; | 9 | |
48 | 10 | padding-right: 10px; | 10 | .twidenash li { |
49 | 11 | } | 11 | list-style-type: none; |
50 | 12 | ul.twidenash li .comment { | 12 | clear: both; |
51 | 13 | margin-left: 5px; | 13 | padding: 3px; |
52 | 14 | display: block; | 14 | font-size: 0.75em; |
53 | 15 | } | 15 | } |
54 | 16 | 16 | ||
55 | 17 | ul.twidenash li .nick { | 17 | .twidenash li img { |
56 | 18 | font-weight: bold; | 18 | float: left; |
57 | 19 | vertical-align: top; | ||
58 | 20 | padding-right: 10px; | ||
59 | 21 | margin-top: 3px; | ||
60 | 22 | } | ||
61 | 23 | |||
62 | 24 | .twidenash li .comment { | ||
63 | 25 | margin-left: 5px; | ||
64 | 26 | display: block; | ||
65 | 27 | overflow: auto; | ||
66 | 28 | } | ||
67 | 29 | |||
68 | 30 | .twidenash li .nick { | ||
69 | 31 | font-weight: bold; | ||
70 | 32 | } | ||
71 | 33 | |||
72 | 34 | .twidenash li .time { | ||
73 | 35 | font-size: 0.75em; | ||
74 | 36 | color: #555; | ||
75 | 19 | } | 37 | } |
76 | 20 | 38 | ||
77 | 21 | 39 | ||
78 | === added directory 'summit/media/jquery' | |||
79 | === added directory 'summit/media/jquery-ui' | |||
80 | === added directory 'summit/media/js' | |||
81 | === removed file 'summit/media/twidenash.js' | |||
82 | --- summit/media/twidenash.js 2010-08-30 14:30:29 +0000 | |||
83 | +++ summit/media/twidenash.js 1970-01-01 00:00:00 +0000 | |||
84 | @@ -1,122 +0,0 @@ | |||
85 | 1 | /* | ||
86 | 2 | * | ||
87 | 3 | * Copyright (c) 2010 Stuart Langridge | ||
88 | 4 | * | ||
89 | 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy | ||
90 | 6 | * of this software and associated documentation files (the "Software"), to deal | ||
91 | 7 | * in the Software without restriction, including without limitation the rights | ||
92 | 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
93 | 9 | * copies of the Software, and to permit persons to whom the Software is | ||
94 | 10 | * furnished to do so, subject to the following conditions: | ||
95 | 11 | * | ||
96 | 12 | * The above copyright notice and this permission notice shall be included in | ||
97 | 13 | * all copies or substantial portions of the Software. | ||
98 | 14 | * | ||
99 | 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
100 | 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
101 | 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
102 | 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
103 | 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
104 | 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
105 | 21 | * THE SOFTWARE. | ||
106 | 22 | * | ||
107 | 23 | * Website: http://code.google.com/p/twidenash/ | ||
108 | 24 | */ | ||
109 | 25 | |||
110 | 26 | /* | ||
111 | 27 | * With modification by Michael Hall for use in loco.ubuntu.com | ||
112 | 28 | */ | ||
113 | 29 | |||
114 | 30 | twidenash = { | ||
115 | 31 | init: function() { | ||
116 | 32 | if (!twidenash.hashtag) return; | ||
117 | 33 | // request hashtag search values for both twitter and identica | ||
118 | 34 | twidenash.callbacks = 0; | ||
119 | 35 | twidenash.items = []; | ||
120 | 36 | twidenash.add_script("http://locoteams.status.net/api/search.json?" + | ||
121 | 37 | "callback=twidenash.cb&rpp=10&q=%23" + twidenash.hashtag); | ||
122 | 38 | twidenash.add_script("http://identi.ca/api/search.json?" + | ||
123 | 39 | "callback=twidenash.cb&rpp=10&q=%23" + twidenash.hashtag); | ||
124 | 40 | twidenash.add_script("http://search.twitter.com/search.json?" + | ||
125 | 41 | "callback=twidenash.cb&rpp=10&q=%23" + twidenash.hashtag); | ||
126 | 42 | twidenash.printed = 0; | ||
127 | 43 | }, | ||
128 | 44 | add_script: function(url) { | ||
129 | 45 | var scr = document.createElement("script"); | ||
130 | 46 | scr.src = url; | ||
131 | 47 | document.getElementsByTagName("head")[0].appendChild(scr); | ||
132 | 48 | }, | ||
133 | 49 | cb: function(data) { | ||
134 | 50 | for (var i=0; i<data.results.length; i++) { | ||
135 | 51 | var dupe = false; | ||
136 | 52 | for (var j=0; j<twidenash.items.length; j++) { | ||
137 | 53 | // Strip characters that may be specific to networks | ||
138 | 54 | var comp1 = data.results[i].text.replace(/[♺\!\#\@]/g, ''); | ||
139 | 55 | var comp2 = twidenash.items[j].text.replace(/[♺\!\#\@]/g, ''); | ||
140 | 56 | var compdate = Date.parse(data.results[i].created_at); | ||
141 | 57 | var datediff = Math.abs(Date.parse(data.results[i].created_at) - twidenash.items[j].dt) | ||
142 | 58 | if (comp1 == comp2 && datediff < 120000) { | ||
143 | 59 | dupe = true; | ||
144 | 60 | break; | ||
145 | 61 | } | ||
146 | 62 | } | ||
147 | 63 | if (dupe) continue; | ||
148 | 64 | twidenash.items.push({ text: data.results[i].text, | ||
149 | 65 | img: data.results[i].profile_image_url, | ||
150 | 66 | dt: Date.parse(data.results[i].created_at), | ||
151 | 67 | user: data.results[i].from_user }) | ||
152 | 68 | } | ||
153 | 69 | twidenash.callbacks += 1; | ||
154 | 70 | if (twidenash.callbacks == 2) { | ||
155 | 71 | twidenash.items.sort(function(a,b) { return b.dt - a.dt }); | ||
156 | 72 | var ul = document.createElement("ul"); | ||
157 | 73 | ul.className = "twidenash"; | ||
158 | 74 | for (i=0; i<twidenash.items.length && twidenash.printed < 5; i++) { | ||
159 | 75 | var li = document.createElement("li"); | ||
160 | 76 | var img = document.createElement("img"); | ||
161 | 77 | img.src = twidenash.items[i].img; | ||
162 | 78 | img.width = 48; | ||
163 | 79 | var span = document.createElement("span"); | ||
164 | 80 | span.className = 'comment'; | ||
165 | 81 | var nick = document.createElement("span"); | ||
166 | 82 | nick.className = 'nick'; | ||
167 | 83 | nick.appendChild(document.createTextNode(twidenash.items[i].user + | ||
168 | 84 | ": ")); | ||
169 | 85 | var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi; | ||
170 | 86 | span.innerHTML = twidenash.items[i].text.replace(exp,"<a href='$1' target='_blank'>$1</a>"); | ||
171 | 87 | li.appendChild(img); | ||
172 | 88 | li.appendChild(nick); | ||
173 | 89 | li.appendChild(span); | ||
174 | 90 | ul.appendChild(li); | ||
175 | 91 | twidenash.printed++; | ||
176 | 92 | } | ||
177 | 93 | twidenash.scriptelement.parentNode.insertBefore(ul, twidenash.scriptelement); | ||
178 | 94 | } | ||
179 | 95 | }, | ||
180 | 96 | cache_scriptname: function() { | ||
181 | 97 | // called before page load so we can find our own name | ||
182 | 98 | var scr = document.getElementsByTagName("script"); | ||
183 | 99 | var url = scr[scr.length-1].getAttribute("src"); | ||
184 | 100 | if (!url) { | ||
185 | 101 | var twidenash_script = document.getElementById("twidenash_script"); | ||
186 | 102 | if (twidenash_script) url = twidenash_script.getAttribute("src"); | ||
187 | 103 | } | ||
188 | 104 | if (url && url.lastIndexOf('?') != -1) { | ||
189 | 105 | twidenash.hashtag = url.substr(url.lastIndexOf('?')+1); | ||
190 | 106 | if (twidenash_script) { | ||
191 | 107 | twidenash.scriptelement = twidenash_script; | ||
192 | 108 | } else { | ||
193 | 109 | twidenash.scriptelement = scr[scr.length-1]; | ||
194 | 110 | } | ||
195 | 111 | } | ||
196 | 112 | } | ||
197 | 113 | }; | ||
198 | 114 | (function(i) {var u =navigator.userAgent;var e=/*@cc_on!@*/false; var st = | ||
199 | 115 | setTimeout;if(/webkit/i.test(u)){st(function(){var dr=document.readyState; | ||
200 | 116 | if(dr=="loaded"||dr=="complete"){i()}else{st(arguments.callee,10);}},10);} | ||
201 | 117 | else if((/mozilla/i.test(u)&&!/(compati)/.test(u)) || (/opera/i.test(u))){ | ||
202 | 118 | document.addEventListener("DOMContentLoaded",i,false); } else if(e){ ( | ||
203 | 119 | function(){var t=document.createElement('doc:rdy');try{t.doScroll('left'); | ||
204 | 120 | i();t=null;}catch(e){st(arguments.callee,0);}})();}else{window.onload=i;}})(twidenash.init); | ||
205 | 121 | twidenash.cache_scriptname(); | ||
206 | 122 | |||
207 | 123 | 0 | ||
208 | === added file 'summit/schedule/management/commands/init-summit.py' | |||
209 | --- summit/schedule/management/commands/init-summit.py 1970-01-01 00:00:00 +0000 | |||
210 | +++ summit/schedule/management/commands/init-summit.py 2011-08-12 14:28:26 +0000 | |||
211 | @@ -0,0 +1,28 @@ | |||
212 | 1 | #!/usr/bin/python | ||
213 | 2 | |||
214 | 3 | from django.core.management.base import NoArgsCommand | ||
215 | 4 | from django.contrib.auth.models import Group | ||
216 | 5 | |||
217 | 6 | import settings | ||
218 | 7 | |||
219 | 8 | import subprocess | ||
220 | 9 | import sys | ||
221 | 10 | import os | ||
222 | 11 | |||
223 | 12 | class Command(NoArgsCommand): | ||
224 | 13 | help = "Make sure Summit is set up properly." | ||
225 | 14 | |||
226 | 15 | def handle_noargs(self, **options): | ||
227 | 16 | path = settings.PROJECT_PATH | ||
228 | 17 | |||
229 | 18 | print " * Adding Bzr Apps:", | ||
230 | 19 | if os.path.isdir(os.path.join(path, "bzr_apps", ".bzr")): | ||
231 | 20 | print "not necessary." | ||
232 | 21 | else: | ||
233 | 22 | subprocess.call(["bzr", "branch", "-q", "--use-existing-dir", | ||
234 | 23 | "lp:ubuntu-django-foundations/bzr-apps", | ||
235 | 24 | "bzr_apps"]) | ||
236 | 25 | print "added." | ||
237 | 26 | |||
238 | 27 | print " * Pulling Bzr Apps:", | ||
239 | 28 | subprocess.call(["./manage.py", "pullapps"]) | ||
240 | 0 | 29 | ||
241 | === modified file 'summit/schedule/templates/schedule/index.html' | |||
242 | --- summit/schedule/templates/schedule/index.html 2011-07-19 01:57:02 +0000 | |||
243 | +++ summit/schedule/templates/schedule/index.html 2011-08-12 14:28:26 +0000 | |||
244 | @@ -1,7 +1,17 @@ | |||
245 | 1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
246 | 2 | {% load datetime %} | 2 | {% load datetime %} |
247 | 3 | {% load i18n %} | 3 | {% load i18n %} |
249 | 4 | 4 | {% block extrahead %}{{block.super}} | |
250 | 5 | <script type="text/javascript" src="{{MEDIA_URL}}jquery/jquery.js"></script> | ||
251 | 6 | <script type="text/javascript" src="{{MEDIA_URL}}js/twidenash/jquery-twidenash.js"></script> | ||
252 | 7 | <script type="text/javascript"> | ||
253 | 8 | //<![CDATA[ | ||
254 | 9 | $(function() { | ||
255 | 10 | $('.twidenash').twidenash(); | ||
256 | 11 | }); | ||
257 | 12 | //]]> | ||
258 | 13 | </script> | ||
259 | 14 | {% endblock %} | ||
260 | 5 | {% block sub_nav %}{% endblock %} | 15 | {% block sub_nav %}{% endblock %} |
261 | 6 | {% block content %} | 16 | {% block content %} |
262 | 7 | <article class="minor-content"> | 17 | <article class="minor-content"> |
263 | @@ -16,6 +26,6 @@ | |||
264 | 16 | </article> | 26 | </article> |
265 | 17 | <article class="minor-content alone"> | 27 | <article class="minor-content alone"> |
266 | 18 | <h2>Microblogging #UDS</h2> | 28 | <h2>Microblogging #UDS</h2> |
268 | 19 | <p><script src="/media/twidenash.js?uds"></script></p> | 29 | <div class="twidenash" id="uds"></div> |
269 | 20 | </article> | 30 | </article> |
270 | 21 | {% endblock %} | 31 | {% endblock %} |
271 | 22 | 32 | ||
272 | === modified file 'summit/settings.py' | |||
273 | --- summit/settings.py 2011-06-16 18:12:32 +0000 | |||
274 | +++ summit/settings.py 2011-08-12 14:28:26 +0000 | |||
275 | @@ -19,7 +19,14 @@ | |||
276 | 19 | import os | 19 | import os |
277 | 20 | import sys | 20 | import sys |
278 | 21 | 21 | ||
280 | 22 | THIS_DIR = os.path.dirname(__file__) | 22 | try: |
281 | 23 | import ubuntu_website | ||
282 | 24 | uw_import = True | ||
283 | 25 | except ImportError: | ||
284 | 26 | print "You will need to run ./manage.py init-summit to make Summit fully work." | ||
285 | 27 | uw_import = False | ||
286 | 28 | |||
287 | 29 | PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) | ||
288 | 23 | 30 | ||
289 | 24 | DEBUG = False | 31 | DEBUG = False |
290 | 25 | TEMPLATE_DEBUG = DEBUG | 32 | TEMPLATE_DEBUG = DEBUG |
291 | @@ -64,7 +71,7 @@ | |||
292 | 64 | 71 | ||
293 | 65 | # Absolute path to the directory that holds media. | 72 | # Absolute path to the directory that holds media. |
294 | 66 | # Example: "/home/media/media.lawrence.com/" | 73 | # Example: "/home/media/media.lawrence.com/" |
296 | 67 | MEDIA_ROOT = os.path.join(THIS_DIR, 'media') | 74 | MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media') |
297 | 68 | 75 | ||
298 | 69 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a | 76 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
299 | 70 | # trailing slash if there is a path component (optional in other cases). | 77 | # trailing slash if there is a path component (optional in other cases). |
300 | @@ -113,11 +120,10 @@ | |||
301 | 113 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". | 120 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
302 | 114 | # Always use forward slashes, even on Windows. | 121 | # Always use forward slashes, even on Windows. |
303 | 115 | # Don't forget to use absolute paths, not relative paths. | 122 | # Don't forget to use absolute paths, not relative paths. |
305 | 116 | os.path.join(THIS_DIR, 'templates'), | 123 | os.path.join(PROJECT_PATH, 'templates'), |
306 | 117 | ) | 124 | ) |
307 | 118 | 125 | ||
310 | 119 | try: | 126 | if uw_import: |
309 | 120 | import ubuntu_website | ||
311 | 121 | TEMPLATE_CONTEXT_PROCESSORS += ( | 127 | TEMPLATE_CONTEXT_PROCESSORS += ( |
312 | 122 | "ubuntu_website.media_processor", | 128 | "ubuntu_website.media_processor", |
313 | 123 | "ubuntu_website.popup_check", | 129 | "ubuntu_website.popup_check", |
314 | @@ -125,10 +131,10 @@ | |||
315 | 125 | TEMPLATE_DIRS += ( | 131 | TEMPLATE_DIRS += ( |
316 | 126 | ubuntu_website.TEMPLATE_DIR, | 132 | ubuntu_website.TEMPLATE_DIR, |
317 | 127 | ) | 133 | ) |
320 | 128 | except ImportError: | 134 | #except ImportError: |
321 | 129 | print "You will need to include lp:ubuntu-community-webthemes/light-django-theme into ./ubuntu_website for the theme to fully work." | 135 | # print "You will need to include lp:ubuntu-community-webthemes/light-django-theme into ./ubuntu_website for the theme to fully work." |
322 | 130 | 136 | ||
324 | 131 | INSTALLED_APPS = ( | 137 | INSTALLED_APPS = [ |
325 | 132 | 'django.contrib.auth', | 138 | 'django.contrib.auth', |
326 | 133 | 'django.contrib.contenttypes', | 139 | 'django.contrib.contenttypes', |
327 | 134 | 'django.contrib.sessions', | 140 | 'django.contrib.sessions', |
328 | @@ -137,7 +143,7 @@ | |||
329 | 137 | 'summit.schedule', | 143 | 'summit.schedule', |
330 | 138 | 'summit.sponsor', | 144 | 'summit.sponsor', |
331 | 139 | 'south', | 145 | 'south', |
333 | 140 | ) | 146 | ] |
334 | 141 | 147 | ||
335 | 142 | AUTHENTICATION_BACKENDS = ( | 148 | AUTHENTICATION_BACKENDS = ( |
336 | 143 | 'django_openid_auth.auth.OpenIDBackend', | 149 | 'django_openid_auth.auth.OpenIDBackend', |
337 | @@ -162,7 +168,7 @@ | |||
338 | 162 | LOGIN_URL = '/openid/login' | 168 | LOGIN_URL = '/openid/login' |
339 | 163 | LOGIN_REDIRECT_URL = '/' | 169 | LOGIN_REDIRECT_URL = '/' |
340 | 164 | 170 | ||
342 | 165 | LAUNCHPAD_CACHE = os.path.join(THIS_DIR, 'lp-cache') | 171 | LAUNCHPAD_CACHE = os.path.join(PROJECT_PATH, 'lp-cache') |
343 | 166 | 172 | ||
344 | 167 | CACHE_BACKEND = 'locmem:///' | 173 | CACHE_BACKEND = 'locmem:///' |
345 | 168 | 174 | ||
346 | @@ -170,6 +176,24 @@ | |||
347 | 170 | # could include a port and prefix if required | 176 | # could include a port and prefix if required |
348 | 171 | ETHERPAD_HOST = 'http://pad.ubuntu.com/' | 177 | ETHERPAD_HOST = 'http://pad.ubuntu.com/' |
349 | 172 | 178 | ||
350 | 179 | # Manage apps from bzr branches | ||
351 | 180 | try: | ||
352 | 181 | import bzr_apps | ||
353 | 182 | INSTALLED_APPS.append('bzr_apps') | ||
354 | 183 | except: | ||
355 | 184 | pass | ||
356 | 185 | |||
357 | 186 | BZR_APPS = { | ||
358 | 187 | ## ubuntu-django-foundations app management | ||
359 | 188 | 'bzr_apps': ('bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubuntu-django-foundations/bzr-apps/', '3'), | ||
360 | 189 | |||
361 | 190 | ## ubuntu-website supplied templates and styles | ||
362 | 191 | 'ubuntu_website': ('bzr+ssh://bazaar.launchpad.net/~ubuntu-community-webthemes/ubuntu-community-webthemes/light-django-theme', '35'), | ||
363 | 192 | |||
364 | 193 | ## twidenash supplied microblog embedding javascript | ||
365 | 194 | 'media/js/twidenash': ('bzr+ssh://bazaar.launchpad.net/~django-foundations-dev/twidenash/2.0/', '3'), | ||
366 | 195 | } | ||
367 | 196 | |||
368 | 173 | import logging | 197 | import logging |
369 | 174 | try: | 198 | try: |
370 | 175 | from local_settings import * | 199 | from local_settings import * |
371 | 176 | 200 | ||
372 | === modified file 'summit/urls.py' | |||
373 | --- summit/urls.py 2011-07-22 01:34:00 +0000 | |||
374 | +++ summit/urls.py 2011-08-12 14:28:26 +0000 | |||
375 | @@ -16,6 +16,7 @@ | |||
376 | 16 | 16 | ||
377 | 17 | from django.conf.urls.defaults import * | 17 | from django.conf.urls.defaults import * |
378 | 18 | from django.conf import settings | 18 | from django.conf import settings |
379 | 19 | import ubuntu_website | ||
380 | 19 | 20 | ||
381 | 20 | from django.contrib import admin | 21 | from django.contrib import admin |
382 | 21 | admin.autodiscover() | 22 | admin.autodiscover() |
383 | @@ -72,7 +73,6 @@ | |||
384 | 72 | ) | 73 | ) |
385 | 73 | 74 | ||
386 | 74 | if settings.DEBUG or settings.SERVE_STATIC: | 75 | if settings.DEBUG or settings.SERVE_STATIC: |
387 | 75 | import ubuntu_website | ||
388 | 76 | urlpatterns += patterns('', | 76 | urlpatterns += patterns('', |
389 | 77 | (r'^media/(?P<path>.*)$', 'django.views.static.serve', | 77 | (r'^media/(?P<path>.*)$', 'django.views.static.serve', |
390 | 78 | {'document_root': settings.MEDIA_ROOT}), | 78 | {'document_root': settings.MEDIA_ROOT}), |
Why are we checking in .hg files?