pragmaticbadger / django-basic-apps forked from nathanborror/django-basic-apps
- Source
- Commits
- Network (20)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
45e560b
commit 45e560b24b4214fef05845b1c8daa4f8221bf68e
tree d72324a50f20bb9bce0c6285676c0e5e10997f63
parent 524071a6e04a6c0568a9214cff013feffe89540e
tree d72324a50f20bb9bce0c6285676c0e5e10997f63
parent 524071a6e04a6c0568a9214cff013feffe89540e
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Jun 21 18:51:52 -0700 2009 | |
| |
AUTHORS | Tue Mar 24 15:54:50 -0700 2009 | |
| |
LICENSE | Thu May 21 07:33:57 -0700 2009 | |
| |
README.rst | Mon Sep 28 00:15:30 -0700 2009 | |
| |
basic/ | ||
| |
setup.py | Sat Sep 26 22:25:37 -0700 2009 |
README.rst
An example of the markup is:
<inline type="media.photo" id="1" />
In your template you would say:
Django Basic Apps
Simple apps for Django projects.
To install any of the apps listed simply create a folder on your PYTHONPATH named 'basic' and place the apps you wish to use in that folder. Then added basic.<app_name> to your project's settings.py file. (replace <app_name> with the apps you wish to use, naturally).
Below are a list of per app dependancies:
Dependancies
- Basic Inlines are required to use the Blog app
- Django Comments (http://www.djangoproject.com/documentation/add_ons/#comments) are required for the blog app
- Django Tagging (http://code.google.com/p/django-tagging)
- Markdown (http://www.djangoproject.com/documentation/add_ons/#markup)
- BeautifulSoup (http://www.crummy.com/software/BeautifulSoup/) is required to use the blog and, subsequently, the inlines app.
- Dateutil (http://labix.org/python-dateutil)
Inlines
Inlines is a template filter that can be used in conjunction with inline markup to insert content objects into other pieces of content. An example would be inserting a photo into a blog post body.
The type attribute is app_name.model_name and the id is the object id. Pretty simple.
{% load inlines %}
{{ post.body|render_inlines }}

