hayley / django-basic-apps forked from nathanborror/django-basic-apps
- Source
- Commits
- Network (20)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit 5b2b9a2c2a6091a9ee6e9a92b67db1f84c6dab24
tree 13d3cd058abe5c7b76b7cc48e874b339d78e9030
parent abf73e7dbad54208bd4ccf5d940417d37f4dd9ee parent e929201b2b41af4bb84393d8ffb0f908778e1b9a
tree 13d3cd058abe5c7b76b7cc48e874b339d78e9030
parent abf73e7dbad54208bd4ccf5d940417d37f4dd9ee parent e929201b2b41af4bb84393d8ffb0f908778e1b9a
| name | age | message | |
|---|---|---|---|
| |
AUTHORS | Tue Mar 24 15:54:50 -0700 2009 | |
| |
LICENSE | ||
| |
README.rst | Fri Mar 13 20:49:09 -0700 2009 | |
| |
__init__.py | Sat Sep 26 22:25:37 -0700 2009 | |
| |
blog/ | ||
| |
bookmarks/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
books/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
events/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
inlines/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
media/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
movies/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
music/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
people/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
places/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
profiles/ | Wed Apr 22 20:55:42 -0700 2009 | |
| |
relationships/ | Wed Apr 22 20:55:42 -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.
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 }}

