philippe::niquille | irregular niche market thoughts

daily webdesign life (with django)

May 11th 2007
No Comments
respond
trackback

This is soo true!

By the way, a few Django issues that kept me swearing..

1) If you are using Django with special chars such as ‘ä ü ö é’ put this ontop of every .py file you are using the chars in:

# coding=utf-8

2) This page has a very good tutorial for starters using Reportlab’s PDF lib (with Django). Especially the explanation of the table-grid coordinate system is useful.

3) Try using Wrappers for Generic Views if you need more complex view-fiddling.

4) Slicing works in templates (ex. cut after 10 chars):

{{ myvar.name|slice:”:10″ }}

5) If you are working with the manage.py runserver dev webserver and queries don’t show the results you are expecting, reload the webserver!

6) Do the ‘print’ debugging with the following line of code:

assert False, the_value_i_want_to_see

No Comments

Leave a Reply