SQLAlchemy + URL dispatch wiki tutorialΒΆ
This tutorial introduces an SQLAlchemy and URL dispatch-based Pyramid application to a developer familiar with Python. When the tutorial is finished, the developer will have created a basic wiki application with authentication and authorization.
For cut and paste purposes, the source code for all stages of this tutorial can be browsed on GitHub at docs/tutorials/wiki2/src, which corresponds to the same location if you have Pyramid sources.
- Background
- Design
- Installation
- Before you begin
- Create directory to contain the project
- Create and use a virtual Python environment
- Upgrade
pip
andsetuptools
in the virtual environment - Install Pyramid into the virtual Python environment
- Install SQLite3 and its development packages
- Change directory to your virtual Python environment
- Making a project
- Installing the project in development mode
- Install testing requirements
- Run the tests
- Expose test coverage information
- Test and coverage scaffold defaults
- Initializing the database
- Start the application
- Visit the application in a browser
- Decisions the
alchemy
scaffold has made for you
- Basic Layout
- Defining the Domain Model
- Defining Views
- Adding authentication
- Adding authorization
- Adding Tests
- Distributing Your Application