Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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 settings.py file. This site should therefore never be used for production purposes.

Purpose

The main purpose of this repository is to showcase the code changes in src/viewsapp/views.py. 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):

Setup

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

$ git clone https://github.com/jambonrose/djangocon2015-views.git
$ 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
$ ./manage.py migrate
$ ./manage.py runserver

Only two webpages are defined:

Helpful Links

About

Code for "Django Views: Functions, Classes, and Generics," my presentation at DjangoCon 2015.

Resources

License

You can’t perform that action at this time.