Archive for the 'django' Category

Access MEDIA_URL from static Javascript files in Django

This is an old trick, that’s been very handy .
Many times for various reasons you’ll need to access your media files from your Javascript files, to display images, change paths, or whatever. And in most cases your development MEDIA_URL and production MEDIA_URL will be different, so having to change them depending on the enviroment [...]

Read More..>>

Django cheap pages

Sometimes I end up using Django for the wrong thing, just to dispatch pages and put all my content in the templates. Flatpages are too flat and other DB based content tools are too complex. I just want to use the dispatcher, and the templates (I know, I could use web.py, or whatever other Python [...]

Read More..>>

Happy Django-ween

The folks here at Aureal did a great job carving the Django pumpkin .

Read More..>>

Mi charla de Introducción a Django

El fin de semana pasado tuve la oportunidad de dar nuevamente una charla de Django en el evento OpenSource Day de la Universidad San Martín de Porres.

Aquí están mis diapositivas de Introducción a Django, y aquí el código de ejemplo usado.
Los archivos son válidos para Django 1.0.

Read More..>>