SQLAlchemy + URL dispatch wiki tutorialΒΆ
This tutorial introduces an SQLAlchemy and URL dispatch-based Pyramid application to a developer familiar with Python. When 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, which corresponds to the same location if you have Pyramid sources.
- Background
- Design
- Installation
- Before you begin
- Install SQLite3 and its development packages
- Install cookiecutter
- Generate a Pyramid project from a cookiecutter
- Change directory into your newly created project
- Set and use a
VENV
environment variable - Create a virtual environment
- Upgrade packaging tools in the virtual environment
- Installing the project in development mode
- Run the tests
- Expose test coverage information
- Test and coverage cookiecutter defaults
- Initializing the database
- Start the application
- Visit the application in a browser
- Decisions the
alchemy
cookiecutter has made for you
- Basic Layout
- Defining the Domain Model
- Defining Views
- Adding authentication
- Adding authorization
- Adding Tests
- Distributing Your Application