What's new in Django community blogs?

Django templates: 'include' context

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 More

Restoring a database from Heroku for local development

Sept. 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 More

Tips for Using Django's ManyToManyField

Aug. 31, 2018 » REVSYS Blog » [Archived Version]

Tips for Using Django's ManyToManyField

Read More

Celery and Django and Docker: Oh My!

July 23, 2018 » REVSYS Blog » [Archived Version]

Celery and Django and Docker: Oh My!

Read More

pytest support for django-test-plus

June 15, 2018 » REVSYS Blog » [Archived Version]

pytest support for django-test-plus

Read More

Adding a delay to Django HTTP responses

May 8, 2018 » /var/ - django » [Archived Version]

How add a delay to your Django HTTP responses using a middleware or a CBV

Read More

Django Birthday: Recap

April 18, 2018 » REVSYS Blog » [Archived Version]

Django Birthday: Recap

Read More

Django Birthday Party

April 18, 2018 » REVSYS Blog » [Archived Version]

Django Birthday Party

Read More

Improved Django Tests

April 18, 2018 » REVSYS Blog » [Archived Version]

Improved Django Tests

Read More

Django Performance: 4 Simple Things

April 18, 2018 » REVSYS Blog » [Archived Version]

Django Performance: 4 Simple Things

Read More