Today while moving Django/PostgreSQL site between servers and importing an SQL dump into the new location I got a surprising error **" ERROR: must be owner of extensio…
To make haystack search pager place nicelly with other get parameters, we can do something like this: # 1) Create a templatetag: ```python @register.simple_tag …
To make Django messages look nice in your bootstrap 3 template you need two things: ## 1\. Create a custom template tag to define css name for a message: ```pytho…
It appears that Django Taggit doesn't support transliteratable tags, what we need to do is to add such support, how you may ask? We should use proxy models. Just add t…
Debugging python code is extremelly simple and powerfull. Just use ipdb for this purposes: ```python pip install ipdb ``` Then open up your code and in the place w…

Get More 🔥 Tips

Subscribe to get notified about new dev tutorials