This is the resulting app from the pyramid_blogr tutorial, but uses PostgreSQL rather than SQLite.
To change the database back from PostgreSQL to SQLite, change this in development.ini
:
sqlalchemy.url = postgresql://postgres@db/postgres
To this:
sqlalchemy.url = sqlite:///%(here)s/pyramid_blogr.sqlite
Docker is used to run the development process here rather than Python virtualenv.
The Dockerfile
, docker-compose.yml
, and start.sh
are based on sample-pyramid-app-with-docker-and-compose.
To set up the containers:
docker-compose up