Home » Odeon Blogs »

Django

Calling instance methods with arguments inside Django templates

What to do in those strange situations where you need to use an instance's method, which needs at least ...

Category: Django


Tagged as: django template tag

Leave a Comment

Django Test Client [quick tip]

While using the Django Test Client, sometimes views need to access request.META['HTTP_HOST'].

Sometimes the views need to retrieve ...

Categories: Django tdd

Leave a Comment

Resubmit form with errors and FileField or ImageField

urlize HTML safe

The form validation process is very useful and does not require too much code to be written. But what if ...

Category: Django

Leave a Comment

Django urlize HTML safe

urlize HTML safe

The default django urlize filter is not HTML safe as the docs say.

Note that if urlize is applied to ...

Category: Django

Leave a Comment

Django Admin - Sort by ForeignKey field

Django Docs says that in Admin you can only display the __unicode__ representation of a ForeignKey field in list_display and ...

Category: Django

5 Comments
Page generated in: 0.25s