svetlyak40wt / django-apps
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Branch:
master
Alexander Artemenko (author)
Thu Nov 20 16:14:04 -0800 2008
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Nov 20 15:04:32 -0800 2008 | |
| |
LICENSE | Thu Nov 20 15:04:32 -0800 2008 | |
| |
MANIFEST.in | Thu Nov 20 15:04:32 -0800 2008 | |
| |
README.md | Thu Nov 20 16:14:04 -0800 2008 | |
| |
django_apps/ | Thu Nov 20 16:01:51 -0800 2008 | |
| |
setup.py | Thu Nov 20 15:04:32 -0800 2008 |
README.md
django-apps
Installation
As usual. Place django_apps somewhere in your python path or install it using easy_install:
easy_install django-apps
Then, add django_apps to the INSTALLED_APPS.
Usage
In the any template use template tag installed_apps to receive a list
of installed apps along with some information about them.
I use following code in my template, to show apps names along with their versions and descriptions.
{% load apps_tags %}
{% installed_apps as apps %}
<table class="apps">
{% for app in apps %}
<tr>
<td>{{ app.name }}</td>
<td>{{ app.version }}</td>
<td>{{ app.description }}</td>
</tr>
{% endfor %}
</table>
You can find an example result at my own 'Installed Apps' page: http://aartemenko.com/about/apps/
Please, note, that descriptions are hardcoded into the code of the django_apps.
