A Cookiecutter (project template) for creating a Pyramid project using ZODB for persistent storage, traversal for routing, and Chameleon for templating.
Python CSS
Switch branches/tags
Nothing to show
Clone or download
stevepiercy use a context manager for configuration (#27) (#28)
* use a context manager for configuration
- closes #21
- needs to be cherrypicked to 1.9-branch and latest
- need to update Pyramid docs

(cherry picked from commit 13feed4)

* move settings above and out of the context manager
- set the root factory inside the context manager

(cherry picked from commit fc2c126)

(cherry picked from commit be4c0e7)
Latest commit 13d56cd Aug 4, 2017

README.rst

pyramid-cookiecutter-zodb

Master Travis CI Status

A Cookiecutter (project template) for creating a Pyramid project using ZODB for persistent storage, traversal for routing, and Chameleon for templating.

Requirements

Versions

This cookiecutter has several branches to support new features in Pyramid or avoid incompatibilities.

  • latest aligns with the latest stable release of Pyramid, and is the default branch on GitHub.
  • master aligns with the master branch of Pyramid, and is where development takes place.
  • x.y-branch aligns with the x.y-branch branch of Pyramid.

Usage

  1. Generate a Pyramid project, following the prompts from the command.

    $ cookiecutter gh:Pylons/pyramid-cookiecutter-zodb

    Optionally append a specific branch checkout to the command:

    $ cookiecutter gh:Pylons/pyramid-cookiecutter-zodb --checkout master
  2. Finish configuring the project by creating a virtual environment and installing your new project. These steps are output as part of the cookiecutter command above and are slightly different for Windows.

    # Change directory into your newly created project.
    $ cd myproj
    # Create a virtual environment...
    $ python3 -m venv env
    # ...where we upgrade packaging tools...
    $ env/bin/pip install --upgrade pip setuptools
    # ...and into which we install our project and its testing requirements.
    $ env/bin/pip install -e ".[testing]"
  3. Run your project's tests.

    $ env/bin/pytest
  4. Run your project.

    $ env/bin/pserve development.ini