Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django admin, section without "model"?

in the Django administration console, all section (menu links) come from models with database tables, but what would I need to do if I need a section without a corresponding model object (no database table) that fetches data from other section with model?

Any ideas? Thanks

like image 430
Asinox Avatar asked Sep 04 '09 13:09

Asinox


People also ask

Can we customize Django admin panel?

The Django admin is a powerful built-in tool giving you the ability to create, update, and delete objects in your database using a web interface. You can customize the Django admin to do almost anything you want.

How do I get to the admin page in Django?

To login to the site, open the /admin URL (e.g. http://127.0.0.1:8000/admin ) and enter your new superuser userid and password credentials (you'll be redirected to the login page, and then back to the /admin URL after you've entered your details).

Does Django have admin panel?

One of the most powerful parts of Django is the automatic admin interface. It reads metadata from your models to provide a quick, model-centric interface where trusted users can manage content on your site.

Can I use Django admin as frontend?

Django Admin's task is to provide an interface to the admin of the web project. Django's Docs clearly state that Django Admin is not made for frontend work.


1 Answers

It looks like you want to add new admin urls with your own customized views and template: django.contrib.admin.ModelAdmin.get_urls

You can construct those new admins without a new model this way.

like image 101
Thierry Lam Avatar answered Sep 21 '22 16:09

Thierry Lam