Effective Django

Nathan Yergler (Eventbrite)
Location: Portland 251 Level: Novice
Average rating: ***..
(3.09, 23 ratings)


Django is a popular, powerful web framework for Python. It has lots of “batteries” included, and makes it easy to get up and going. But all of the power means you can write low quality code that still seems to work. Effective Django development means building applications that are testable, maintainable, and scalable — not only in terms of traffic or load, but in terms of being able to add developers to projects. This tutorial will introduce attendees to Django with an emphasis on best practices, testing, maintenance, and scalability.

Central to effective Django development is a mental model of what different pieces are “supposed” to do:

  • Views — Convert Request to Response
  • Forms — Convert input to Python objects
  • Models — Encapsulate data and business logic

As we walk through building an application, this model will be used to help reinforce what makes something testable, maintainable, and scalable.

Particular attention will be paid to features introduced in the last two releases which casual developers may not be aware of, but which can make them much more effective when using Django. This includes class based views, testing tools, and ORM changes.

Topics covered will include:

  • best practices for code organization and dependency management
  • class based views
  • unit tests, the test client, and request factory
  • the ORM and new additions in recent releases
  • use of forms


* Step by step instructions for installing Python and the virtualenv and more are here: effectivedjango.com/tutorial/before.html

QUESTIONS for the speaker?: Use the “Leave a Comment or Question” section at the bottom to address them.

Photo of Nathan Yergler

Nathan Yergler


Nathan Yergler is a Principal Engineer at Eventbrite. Prior to joining Eventbrite Nathan worked at Creative Commons, serving as Chief Technology Officer from 2007-2011. In that role he was responsible for architecting and building the technical infrastructure for CC licenses, and managing the engineering team.

Nathan lives in San Francisco with his dog, Madeline. She bites.


Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at (707) 827-7065 or scordesse@oreilly.com.

Contact Us

View a complete list of OSCON contacts