Django

## Approach 1 Override all widgets of a given type in a form. In this example we set CKEditor widget for all textfields in the form. ```python # file: admin.py c…
I had a long running process (data import) and encountered **504 Gateway Timeout** error. I use Nginx / uwsgi pair to serve my Django app. After doing some research i…
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…

Get More 🔥 Tips

Subscribe to get notified about new dev tutorials