Code for "Django Views: Functions, Classes, and Generics," my presentation at DjangoCon 2015.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Django Views: Functions, Classes, and Generics

This repository contains the code used in my DjangoCon 2015 presentation. All other materials may be accessed here.

NB: To ease setup of this demonstration, the Django Secret Key has not been removed from the file. This site should therefore never be used for production purposes.


The main purpose of this repository is to showcase the code changes in src/viewsapp/ There are several relevant states (stored in the repo as git tags; click the links to see each one; in order of appearance in the presentation):


The project is built in Python 3.4 and Django 1.8. To download the repository, please use:

$ git clone
$ cd djangocon2015-views

Using a virtual environment (such as virtualenvwrapper) is highly recommended.

$ mkvirtualenv djangocon2015-views
$ pip install -r requirements.txt

This will allow you to run the Jupyter Notebook, as demonstrated below.

$ jupyter notebook Callable_Primer.ipynb

The Django project code is stored in the src/ directory. It uses the default Django configuration (the SQLite database), allowing you to run the project immediately:

$ cd src
$ ./ migrate
$ ./ runserver

Only two webpages are defined:

Helpful Links