2👍
It is entirely possible to do this. You can do this with regular views, and then create templates that extend the “admin/base_site.html” template like so:
{% extends "admin/base_site.html" %}
You can also do breadcrumbs like this:
{% block breadcrumbs %}{% if not is_popup %}
<div class="breadcrumbs">
<a href="/admin/">Home</a> ›
<a href="/admin/yourpath/">Up One Level</a> ›
You Are Here
</div>
{% endif %}{% endblock %}
And then put whatever content you want inside of the “content” block.
3👍
As what Ben said, you can do this by creating a view function for your dashboard page. The view function itself can live anywhere within your project, but Django needs to know where it is (i.e. unlike the Django’s default model admin views, you need to define your view in a urls.py
file that is known to Django).
One thing to add, since I’m assuming that this dashboard page is only accessible via your admin interface, you want to secure it using some of the built-in authentication decorators (e.g. login_required or permission_required).
- [Django]-Django unable to render logout template
- [Django]-Annotate existing model objects in Django
- [Django]-Django / MySQL: How to do Autonomous Transactions (commit only sub-set of queries)?
- [Django]-How to allow editing of templates for email by admin user in Django?
- [Django]-Django: In django-tables2 how to modify the way URLField gets rendered
2👍
I’m using django-admin-tools for creating dashboards. It is quite easy to create custom dashboard modules with this app.
There is also an another app (nexus) with similar purposes. I haven’t tried it by myself but it looks good too.
- [Django]-How to test APIView in Django, Django Rest Framework
- [Django]-Django South vs Migratory
- [Django]-Django Rest Framework Serializer POST data not receiving arrays
- [Django]-How to expose manytomany field as a resource with tastypie?
- [Django]-Django Create and Save Many instances of model when another object are created
1👍
- [Django]-(django) static file for the whole project
- [Django]-Cannot concatenate 'str' and 'tuple' objects – Django – johnny cache
- [Django]-Multi-table inheritance in the admin view
- [Django]-How can I display an jupyter notebook on a homepage built with django?
- [Django]-How to use python-social-auth with google only?