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 for a specific branch or version under docs/tutorials/wiki2/src
,
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
- Initialize and upgrade the database using Alembic
- Load default data
- Run the tests
- Expose test coverage information
- Test and coverage cookiecutter defaults
- Start the application
- Visit the application in a browser
- Decisions the cookiecutter backend option
sqlalchemy
has made for you
- Basic Layout
- Defining the Domain Model
- Defining Views
- Adding authentication
- Adding authorization
- Adding Tests
- Distributing Your Application