Skip to content

Instantly share code, notes, and snippets.

View hvdklauw's full-sized avatar
🏠
Working from home (mostly)

Harro van der Klauw hvdklauw

🏠
Working from home (mostly)
View GitHub Profile
@hvdklauw
hvdklauw / gist:719942
Created November 29, 2010 13:23
KISS?
{% thumbnail candidate.picture "60x40" as im %}
<img class="quickProfilePicture" alt="{{ candidate.full_name }}" src="{{ im.url }}" style="margin:{{ im|margin:"60x40" }}" width="{{ im.x }}" height="{{ im.y }}" />
{% empty %}
{% thumbnail "defaults/pol-dummy.jpg" "60x40" as im %}
<img class="quickProfilePicture" alt="{{ candidate.full_name }}" src="{{ im.url }}" style="margin:{{ im|margin:"60x40" }}" width="{{ im.x }}" height="{{ im.y }}" />
{% endthumbnail %}
{% endthumbnail %}
======================================================
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10
======================================================
This article will cover setting up Django using Apache/mod_wsgi on Ubuntu
8.10. The article is targeted at a production environment, but keep in mind
this is a more generalized environment. You may have different requirements,
but this article should at least provide the stepping stones.
The article will use distribution packages where nesscary. As of 8.10 the