https://github.com/domenkozar/pyramid-cookiecutter-jinja2
A cookiecutter (project template) for creating a Pyramid starter project using Jinja2 for templating.
https://github.com/domenkozar/pyramid-cookiecutter-jinja2
Last synced: about 1 year ago
JSON representation
A cookiecutter (project template) for creating a Pyramid starter project using Jinja2 for templating.
- Host: GitHub
- URL: https://github.com/domenkozar/pyramid-cookiecutter-jinja2
- Owner: domenkozar
- Created: 2016-12-08T14:49:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T17:34:29.000Z (over 9 years ago)
- Last Synced: 2025-04-04T20:12:49.725Z (about 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
===========================
pyramid-cookiecutter-jinja2
===========================
.. image:: https://travis-ci.org/Pylons/pyramid-cookiecutter-jinja2.png?branch=master
:target: https://travis-ci.org/Pylons/pyramid-cookiecutter-jinja2
:alt: Master Travis CI Status
A cookiecutter (project template) for creating a Pyramid starter project using
Jinja2 for templating.
See `pyramid_jinja2 `_ documentation for more details.
Requirements
------------
* Python 2.7 or 3.4+
* `cookiecutter `_
Usage
-----
1. Generate a Pyramid project, following the prompts from the command.
.. code-block:: bash
$ cookiecutter https://github.com/Pylons/pyramid-cookiecutter-jinja2
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.
.. code-block:: bash
# 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.
.. code-block:: bash
$ env/bin/pytest
4. Run your project.
.. code-block:: bash
$ env/bin/pserve development.ini