pyramid_fanstatic provide a Pyramid tween for Fanstatic and a pyramid scaffold.
Scaffold
Just run:
pcreate -s starter -s pyramid_fanstatic myproject
Or:
pcreate -s pyramid_fanstatic myexistingproject
if you want to add pyramid_fanstatic to an existing project.
Then read README_FANSTATIC.txt
Fanstatic library definition is added to resources.py. Resources are located in the resources/ directory.
Tween usage
You can use all fanstatic options in your .ini. You just need to prefix options with fanstatic.:
[app:main]
...
fanstatic.publisher_signature = fanstatic
You should add at least those two options:
fanstatic.bottom = true
fanstatic.debug = true # in development.ini
Then include pyramid_fanstatic in your __init__.py:
config.include('pyramid_fanstatic')
Requirements:
- Python
- Fanstatic
Comments not found