Composite views for REST services.
Composite pages for django.
We are at the cheese-shop:
pip install django_forest
In order to use django_forest in your project:
- Include mptt and forest in your INSTALLED_APPS settings.
- Enable django-admin.
- In your terminal, type: python manage.py syncdb
- Followed by: python manage.py runserver
- Point your browser to localhost:8000/admin
- Create a few Pages: Pages are defined as well, web-pages only that in context of django_forest, they contain Widgets.
- Create a few Widgets: Little boxes that point to a URL. The URL is used to get a partial-HTML rendered from a server or JSON which is then rendered into HTML client-side using handlebar.js templates.
- And finally we have Templates: If you haven’t guessed already, these are client-side handlebar.js snippets that will get their context from the JSON at the URL defined in the Widget.
- The above arrangement is all you need to make composite pages. There is room for improvement: For instance, the gridster.js that allows for drag-and-drop functionality does not currently serialize its state to the server. However, I intend to iron-out these niggles in the coming release.Watch this space.
- First release on PyPI.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_forest-0.1.1.tar.gz (56.0 kB)||File type Source||Python version None||Upload date||Hashes View hashes|