Merge lp:~elachuni/ubuntu-webcatalog/convoy into lp:ubuntu-webcatalog
Status: | Merged |
---|---|
Approved by: | Anthony Lenton |
Approved revision: | 66 |
Merged at revision: | 66 |
Proposed branch: | lp:~elachuni/ubuntu-webcatalog/convoy |
Merge into: | lp:ubuntu-webcatalog |
Prerequisite: | lp:~elachuni/ubuntu-webcatalog/exhibit-widget |
Diff against target: |
209 lines (+68/-10) 10 files modified
.bzrignore (+1/-0) django_project/config/main.cfg (+1/-1) fabtasks/bootstrap.py (+2/-0) src/webcatalog/templates/light/404.html (+1/-1) src/webcatalog/templates/light/index.1col.html (+3/-4) src/webcatalog/templates/webcatalog/application_detail.html (+1/-1) src/webcatalog/templates/webcatalog/base.html (+1/-1) src/webcatalog/tests/test_views.py (+34/-0) src/webcatalog/urls.py (+1/-1) src/webcatalog/views.py (+23/-1) |
To merge this branch: | bzr merge lp:~elachuni/ubuntu-webcatalog/convoy |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | Approve | ||
Review via email: mp+95963@code.launchpad.net |
Commit message
Added a combo loader view using lp:convoy to load multiple css stylesheets or javascript files.
Description of the change
Overview
========
This branch adds a combo loader view using lp:convoy to load multiple css stylesheets or javascript files. It also plugs this into YUI so that all the javascript YUI pulls in is piled into a single request.
Details
=======
This improvement comes from a recent discussion on canonical-tech, the view is largely based on Sidnei's combo view for Django.
Using the combo loader all pages need at least three requests less (as the four stylesheets pulled in by base.html are
all requested together), and the application details page goes down from 34 requests to 8.
This change is part of a sequence of three MPs to add a nifty "exhibits" widget to the front page. The next branch will add the YUI3 carrousel widget.
On Mon, Mar 5, 2012 at 7:13 PM, Anthony Lenton ca-hackers) /code.launchpad .net/~elachuni/ ubuntu- webcatalog/ convoy/ +merge/ 95963
<email address hidden> wrote:
> Anthony Lenton has proposed merging lp:~elachuni/ubuntu-webcatalog/convoy into lp:ubuntu-webcatalog with lp:~elachuni/ubuntu-webcatalog/exhibit-widget as a prerequisite.
>
> Requested reviews:
> Canonical Consumer Applications Hackers (canonical-
>
> For more details, see:
> https:/
>
> Overview
> ========
> This branch adds a combo loader view using lp:convoy to load multiple css stylesheets or javascript files. It also plugs this into YUI so that all the javascript YUI pulls in is piled into a single request.
Excellent! All looks great... I had a few questions/thoughts below
inline that we may want to think about, but approving as is.
> /code.launchpad .net/~elachuni/ ubuntu- webcatalog/ convoy/ +merge/ 95963 project/ config/ main.cfg' project/ config/ main.cfg 2012-03-05 18:12:17 +0000 project/ config/ main.cfg 2012-03-05 18:12:18 +0000 context_ processors. google_ analytics_ id context_ processors. user_agent project/ static/ g/static/
> Details
> =======
> This improvement comes from a recent discussion on canonical-tech, the view is largely based on Sidnei's combo view for Django.
> Using the combo loader all pages need at least three requests less (as the four stylesheets pulled in by base.html are
> all requested together), and the application details page goes down from 34 requests to 8.
>
> This change is part of a sequence of three MPs to add a nifty "exhibits" widget to the front page. The next branch will add the YUI3 carrousel widget.
>
> --
> https:/
> You are subscribed to branch lp:ubuntu-webcatalog.
>
> === modified file '.bzrignore'
> --- .bzrignore 2011-09-15 10:53:40 +0000
> +++ .bzrignore 2012-03-05 18:12:18 +0000
> === modified file 'django_
> --- django_
> +++ django_
> @@ -50,7 +50,7 @@
> webcatalog.
> webcatalog.
>
> -static_root = ./django_
> +static_root = ./src/webcatalo
Hrm.. it sounds like we're not using this in the way it's meant to be
used... right, from memory we haven't started using the static files
support really. static_root should be point at where we want static
files collated when running the collectstatic management command:
https:/ /docs.djangopro ject.com/ en/1.3/ howto/static- files/# deploying- static- files-in- a-nutshell
Although maybe that's fine for development... might be worth us
reviewing the way we're handling these static files.
> static_url = /assets/ bootstrap. py' bootstrap. py 2012-01-06 14:00:18 +0000 bootstrap. py 2012-03-05 18:12:18 +0000 django- openid- auth/django_ openid_ auth", project/ django_ openid_ auth") pull_bzr_ branch( "lp:convoy", "convoy", revision=20) "branches/ convoy/ convoy" , "django_ project/ convoy" )
> admin_media_prefix = /assets/admin/
>
>
> === modified file 'fabtasks/
> --- fabtasks/
> +++ fabtasks/
> @@ -125,6 +125,8 @@
> _symlink(
> "branches/
> "django_
> + _get_or_
> + _symlink(
And it's available as a package to install for deploy? If so, we
should be updating the dependencies too right (that's a separate
branch now isn't it.. ...