[color]
diff = auto
status = auto
branch = auto
[user]
name = Your Name
{% if is_paginated %} | |
{% load i18n %} | |
<ul class="pagination"> | |
<li{% if not page_obj.has_previous %} class="disabled"{% endif %}><a href="{% if not page_obj.has_previous %}#{% else %}?page={{ page_obj.previous_page_number }}{{ getvars }}{% endif %}">«</a></li> | |
{% if show_first %} | |
<li><a href="?page=1{{ getvars }}">1</a></li> | |
<li><span>...</span></li> | |
{% endif %} |
## | |
# Global SSL settings - nginx.conf in http section | |
## | |
## | |
# For additional performance, enable SPDY support for each site by changing the: | |
# | |
# listen 443 ssl; | |
# | |
# line to: |
class CachedCountCloneProxy(object): | |
''' This allows us to monkey-patch count() on QuerySets so we can cache it and speed things up. | |
._clone is called so we have to monkey-patch that first... | |
''' | |
def __init__(self, queryset): | |
self._queryset = queryset | |
self._queryset._clone_original = self._queryset._clone | |
def __call__(self): |
""" | |
Author: Jeff Triplett | |
Based off: https://code.djangoproject.com/wiki/PaginatorTag | |
Thanks to Brent O'Connor for pointing it out. | |
""" | |
from django import template | |
register = template.Library() |
$ ./pip.sh outdated | |
Fabric (1.4.3 != 1.5.1) | |
gunicorn (0.17.0 != 0.17.2) | |
$ ./pip.sh install -U gunicorn | |
Downloading/unpacking gunicorn==0.17.2 | |
Using download cache from /Users/jefftriplett/.pip/download_cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fg%2Fgunicorn%2Fgunicorn-0.17.2.tar.gz | |
Running setup.py egg_info for package gunicorn | |
Installing collected packages: gunicorn |
(et-test)erics@builder-1204-x64:~/et-test/et-issue-example$ valgrind --tool=massif python manage.py generate_all_thumbnail_aliases | |
==16695== Massif, a heap profiler | |
==16695== Copyright (C) 2003-2011, and GNU GPL'd, by Nicholas Nethercote | |
==16695== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info | |
==16695== Command: python manage.py generate_all_thumbnail_aliases | |
==16695== | |
1; RSS: 142912; Unshared: 0; Obj: 27683 | |
2; RSS: 142912; Unshared: 0; Obj: 27535 | |
3; RSS: 177228; Unshared: 0; Obj: 27563 | |
4; RSS: 177228; Unshared: 0; Obj: 27591 |