Pyramid Scaffold for getting started with SQLAlchemy ORM and Jinja2 Templating Engine
Project description
OVERVIEW
---------
jinja2_alchemy_starter is a scaffold for getting started with a pyramid project using Jinja2 Templating Engine and SQLAlchemy ORM
INSTALLATION
-------------
Install it in your existing python installation (`virtualenv` is recommended)
If you have source file available locally::
$ /opt/py_env/bin/easy_install jinja2_alchemy_starter-X.tar.gz
Or to download and install from PyPI::
$ /opt/py_env/bin/easy_install jinja2_alchemy_starter
After successful installation, `pcreate` will also list `jinja2_alchemy_starter` as available scaffold::
$ /opt/py_env/bin/pcreate -l
Available scaffolds:
alchemy: Pyramid SQLAlchemy project using url dispatch
jinja2_alchemy_starter: Pyramid project with Jinja2 and SQLAlchemy
pyramid_jinja2_starter: pyramid jinja2 starter project
starter: Pyramid starter project
zodb: Pyramid ZODB project using traversal
USAGE
------
To create a new pyramid project using `jinja2_alchemy_starter` just pass that as `-s` argument::
$ /opt/py_env/bin/pcreate -s jinja2_alchemy_starter MyProject
This will create MyProject directory in your working directory.
PUT IT TO WORK
---------------
- Edit development.ini to reflect your DB settings.
- Edit rest of the files
CHANGES
=======
0.3
----
- Added pyramid_includes in development.ini. (pyramid_tm is invaluable for transaction handling)
- Changed view code - session object instantiation occurs in individual views
0.2.2
-----
- Added zope.sqlalchemy in the requirement list in the scaffold setup.py
0.2.1
------
- Added an example code (commented) about using session in views
0.2
---
- Added locale information to the scaffold
0.1
---
- Initial Release
---------
jinja2_alchemy_starter is a scaffold for getting started with a pyramid project using Jinja2 Templating Engine and SQLAlchemy ORM
INSTALLATION
-------------
Install it in your existing python installation (`virtualenv` is recommended)
If you have source file available locally::
$ /opt/py_env/bin/easy_install jinja2_alchemy_starter-X.tar.gz
Or to download and install from PyPI::
$ /opt/py_env/bin/easy_install jinja2_alchemy_starter
After successful installation, `pcreate` will also list `jinja2_alchemy_starter` as available scaffold::
$ /opt/py_env/bin/pcreate -l
Available scaffolds:
alchemy: Pyramid SQLAlchemy project using url dispatch
jinja2_alchemy_starter: Pyramid project with Jinja2 and SQLAlchemy
pyramid_jinja2_starter: pyramid jinja2 starter project
starter: Pyramid starter project
zodb: Pyramid ZODB project using traversal
USAGE
------
To create a new pyramid project using `jinja2_alchemy_starter` just pass that as `-s` argument::
$ /opt/py_env/bin/pcreate -s jinja2_alchemy_starter MyProject
This will create MyProject directory in your working directory.
PUT IT TO WORK
---------------
- Edit development.ini to reflect your DB settings.
- Edit rest of the files
CHANGES
=======
0.3
----
- Added pyramid_includes in development.ini. (pyramid_tm is invaluable for transaction handling)
- Changed view code - session object instantiation occurs in individual views
0.2.2
-----
- Added zope.sqlalchemy in the requirement list in the scaffold setup.py
0.2.1
------
- Added an example code (commented) about using session in views
0.2
---
- Added locale information to the scaffold
0.1
---
- Initial Release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jinja2_alchemy_starter-0.3.tar.gz
(16.1 kB
view hashes)
Close
Hashes for jinja2_alchemy_starter-0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b00e9ba7ad060f3a9280135c9d54618403090769691efaef5479cbd5916559bc |
|
MD5 | 643220197812decc9e3451d96b3c9cbb |
|
BLAKE2b-256 | 2c36f0efa33d98131ce22f67bf0ac2745bc9e3697a81cc938699a7b809ac9a92 |