Skip to content

Code examples for the talk "Behind the curtain - How Django handles a request" at DjangoCon Europe 2019.

Notifications You must be signed in to change notification settings

consideratecode/django-behind-the-curtain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Behind the curtain

Code examples for the workshop "Behind the curtain - How Django handles a request", presented at DjangoCon Europe 2019 (Slides).

Each sub-directory contains a small Django project.

default
A project with default structure and settings, generated with django-admin.py startproject default
simple
A really simple project
middleware
Like simple, but with three middleware classes that do some logging.

Usage

The only external dependency is Django 2.2.x, meaning you have to use Python 3.5 or higher.

There is a requirements.txt file:

(venv) $ pip install -r requirements.txt

You can the change into one of the project directories and run the server.py script, which starts a server on 127.0.0.1:8000:

(venv) $ cd simple
(venv) $ python server.py

Note that the server intentionally exits after handling a single request.

About

Code examples for the talk "Behind the curtain - How Django handles a request" at DjangoCon Europe 2019.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages