Sept. 9, 2018 » The Big Log » [Archived Version]
Something I learned today which should come handy. The include tag allows rendering a partial template from another: {% include 'foo/bar.html' %} So I was doing this to pass context to the included partial: {% with obj=release %} {% include 'releases_widget.html' %} {% endwith %} And this why it's good to read the docs, because apparently this can be done much better like so: {% include 'releases_widget.html' with obj=release %}
Read MoreSept. 5, 2018 » The Big Log » [Archived Version]
I've recently had to download my Django app's database for local inspection. Heroku lets you do that pretty easily with: $ heroku pg:backups:download This gets you a .dump file. Now it's time to create a database clone out of it. Here's the gist. We first create a new database: $ sudo -u USERNAME createdb NEW_DATABASE_NAME Note that USERNAME and NEW_DATABASE_NAME should be replaced with the respective values. The next step to is to restore the downloaded .dump to the database we just created:…
Read MoreAug. 31, 2018 » REVSYS Blog » [Archived Version]
Tips for Using Django's ManyToManyField
Read MoreJuly 23, 2018 » REVSYS Blog » [Archived Version]
Celery and Django and Docker: Oh My!
Read MoreJune 15, 2018 » REVSYS Blog » [Archived Version]
pytest support for django-test-plus
Read MoreMay 8, 2018 » /var/ - django » [Archived Version]
How add a delay to your Django HTTP responses using a middleware or a CBV
Read MoreApril 18, 2018 » REVSYS Blog » [Archived Version]
Django Birthday: Recap
Read MoreApril 18, 2018 » REVSYS Blog » [Archived Version]
Django Birthday Party
Read MoreApril 18, 2018 » REVSYS Blog » [Archived Version]
Improved Django Tests
Read MoreApril 18, 2018 » REVSYS Blog » [Archived Version]
Django Performance: 4 Simple Things
Read More