i have a small problem… i want to bind my app to adminsite. my app doesnot use models.py so the only way to make my app visible in adminsite is to override the app_index.html from django’s admin/templates directory. my problem is that i dont know how to override this sothat my app is in admin. i v read all the docs, but the exact way how to do this is hard to find…
here is that app_index.html:
{% extends "admin/index.html" %}
{% load i18n %}
{% if not is_popup %}
{% block breadcrumbs %}
<div class="breadcrumbs"><a href=".../">
{% trans "HOME" %}</a>
{% for app in app_list %}
{% blocktrans with app.name as name %} {{ name }} {% endblocktrans %}
{% endfor %}</div>{% endblock %}
{% endif %}
{% block sidebar %}{% endblock %}
thanks in advance…
best regards,
you don’t need models.py, just register a “Model” with the admin site.
admin.site.register(class MyMenuThing(models.Model): pass)