On 3/14/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
> Is there a function for checking whether an app was installed in the
> current project?

Currently, the list of apps on the default admin index page is
generated by the 'get_admin_app_list' template tag, which just returns
a list of apps. If all you need to do is show some content along with
that app's stuff on the index you can do something like

{% load adminapplist %}
{% get_admin_app_list as app_list %}
{% for app in app_list %}
{% ifequal app.name 'myapp' %}
...do your special stuff here...
{% else %}
...do the normal stuff showing links to add/change model instances...
{% endifequal %}
{% endfor %}

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to