Create a Pyramid app from scratch. Learn about models, views, traversal, security, the ZODB, and more.
CSS JavaScript Python
Latest commit 251b98a Oct 11, 2013 @dnouri Install pyramid==1.4.5 for #1.
Failed to load latest commit information.
ex1_hello Import again Oct 29, 2012
ex2_zodb_scaffold Import again Oct 29, 2012
ex3_templates Import again Oct 29, 2012
ex4_forms Import again Oct 29, 2012
ex5_users Import again Oct 29, 2012
ex6_security Import again Oct 29, 2012
ex7_final Import again Oct 29, 2012
.gitignore Import again Oct 29, 2012
INSTALL.txt Install pyramid==1.4.5 for #1. Oct 11, 2013
README.txt Import again Oct 29, 2012
requirements.txt Import again Oct 29, 2012


Pyramid Tutorial


This is a repository containing all the examples and other material
used in the Pyramid tutorial held at EuroPython 2012 and Pycon DE

You can find out more about Pyramid here:

If you have questions about this tutorial, feel free to contact the
author at


See INSTALL.txt for instructions on how to install the software
required to run the examples in this tutorial.


The example folders each contain a README.txt file with details on
what the example is about.  Here's a quick overview of all the
examples contained in this tutorial:


  The first hello world application deals with basic views and


  This example explains the various bits of code created by Pyramid's
  'zodb' scaffold.


  In this step, we will implement our own first model, a 'Folder'.
  We will also split up our template, so that elements such as logo
  and navigation that appear in all our HTML pages, are separated out
  into a 'master template'.


  In this part of the tutorial, we will add another model called
  'Page', so that then we're able to put pages into our folders.
  We'll also create HTML forms to be able to add, edit and delete
  folders and pages.


  In this part of the tutorial, we will add a 'User' model.  We'll
  also implement authentication, and allow new users to register with
  our site.


  In the final part of this tutorial, you will learn about security in
  Pyramid.  Concretely, you will guard your add and edit views with
  permissions, so that anonymous users can no longer edit any content.
  You will learn how to make use of Access Control Lists to allow
  users to edit content in their respective user folders.


  The last example project contains all the solutions for the
  ex6_security exercise.