| Date | Title | Tags |
|---|---|---|
| Oct. 27, 2009 |
Separating staff and user accounts in Django's admin
Django's user application allows you to store user accounts for staff members (User who can access the admin application) and users without this status, lets call these "Customers" here. The ... |
admin django rowlevel permissions user |
| Sept. 2, 2009 |
Simple Django test settings
I always forget it; this is more a note to myelf: The simplest settings file to do Django tests is: DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = ':memory:' TEST_DATABASE_NAME = ":memory:" Also ... |
django settings tests |
| Aug. 5, 2009 |
Sessions im Cache halten
Djangos Session Framework speichert die Sessions standardmässig in einer Datenbanktabelle. Sendet der Browser eine Session-ID wird immer ein SQL-Query ausgeführt: SELECT session_key, session_data, expire_date FROM django_session WHERE (session_key = a4b2774d4ebdc0cc919d8048c460eec4 ... |
cache django memcached performance session sql |
| Aug. 3, 2009 |
Take care of Django comments and per-site caching
Django's comment systems adds an anti-spam feature that prevents "reply attacks" based on a timestamp. What does that mean? The comment form generates a hidden input field containing the current ... |
comments django spam |
| July 28, 2009 |
Queryset Chaining mit Proxy Models
Nein, dieser Artikel ist in deutsch, auch wenn der Titel etwas anderes vermuten lässt. In diesem Artikel geht es darum, Querysets zu verbinden. Wann braucht man sowas? Stichwort Tumblelog: eine ... |
django proxy model queryset tumblelog |
| July 19, 2009 |
Detect spam comments in Django: comments-spamfighter
A while ago I updated this website to Django 1.1 and replaced my self-made comment system in favor of Django's contrib.comments. This comment-system comes with a built-in anti spam feature; ... |
comments django django-comments-spamfighter spam |
| May 24, 2009 |
Serve your comments as a feed
It's quite useful to let your visitors track the comments of your weblog entries with RSS feeds. While displaying all recent comments is quite simple, there is no way in ... |
django rss syndication |
| April 9, 2009 |
Überschreiben hochgeladener Dateien
Wird eine Datei für ein FileField oder ImageField hochgeladen und exisitiert bereits, überschreibt Django diese Datei nicht sondern hängt einen Tiefstrich an die Datei. Die ältere Datei bleibt ohne Verweis ... |
django fields upload |
| April 8, 2009 |
Group By Funktionen in Querysets
In meinem aktuellen Projekt will ich die Anzahl neuer Einträge in einem Model pro Tag in einer Grafik darstellen, ich habe also ein Problem wie: Gib mir eine Liste aller ... |
aggregation django mysql queryset sql |
| March 21, 2009 |
Automatisch lokalisierte Zeitformatierungen
Ein nur knapp dokumentiertes Feature ist die Lokalisierung von String innerhalb von Templatetags und Filtern. Dort reicht es, den betreffenden String in einen gettext-Shortcut zu setzen: {{ _("hello world")|upper }} ... |
django i18n templatetags |
© 2001—2010 Martin Mahner. This is an I ♥ Django Project.
Admin | Generated: Sat, 13 Mar 2010 11:25:34 +0100