Delivered once every Week. No Spam Ever.

Issue - 14


Worthy Read

The article starts of with an introduction snippet to decorators and then goes on to explore some real world examples in context of Django. Personally one good find in the article was boltons library.
django
,
decorators

Explains nicely how csrf works with HTML and request header snippets. To those who are fan of @csrf_exempt do read ;)
csrf

Move fast, with confidence. Learn more about Infrastructure at an upcoming webinar. Curator's note - I used Newrelic in all my projects. It's drill down of performance from browser to one's backend is very helpful when it comes to optimizing. If you wish to go beyond just Django Toolbar and get a comprehensive breakdown check newrelic. Here is New Relic Python Documentation on how to integrate it with your codebase https://docs.newrelic.com/docs/agents/python-agent/getting-started/new-relic-python .
sponsor

Tutorial on Django forms.
forms

This week I ran into a minor problem that took a surprising amount of time to resolve. Getting a Django template to produce a dict in sorted order. While there were answers out there, none seemed to match the environment that I am using (python 3, Django 1.10). After some experimentation, I finally came up with what I think is a good solution.
python3
,
templates
,
dict

Before you can test if your site is fast you need to understand your traffic and choose what to test.
performance

Django Maintenance mode is a middleware that allows you to temporarily shutdown your site for maintenance work. Logged in users having staff credentials can still fully use the site as can users visiting the site from an IP address defined in Django's ``INTERNAL_IPS``.
django
,
maintenance
,
module

Have you ever noticed how stock photography sites add watermarks to the images shown on their catalogs? They do that to make sure people don’t just take the free samples and use them without proper licensing. Google Maps does it for the satellite imagery as well. Turns out this is pretty easy to do and we’ll show you how to do it for Django sites sites using Pillow and django-imagekit.
pillow

Videos from Django Under the Hood 2016 are up - check ‘em out! As usual, the conference was amazing and the content was fantastic. I really enjoyed all the talks, and they’re all worth your time to talk. Three in particular stood out to me as exceptional highlights.
duh

Start a free JIRA Software trial and get this shirt.
sponsor

Simple Python Quiz to mark 100th Issue of ImportPython Newsletter.
python


Projects

kaneda - 28 Stars, 3 Fork
Configurable Python library for metrics and events reporting. Supports Django as well.

djangocms-inline-comment - 5 Stars, 0 Fork
Plugin for django CMS – Add comments to the structure board and comment out plugins, visible to staff only.