Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding links and buttons on django admin page

Is there a way to add some external links and buttons on the django admin page? I am trying to add link of my web page on the django-admin login page and unable to do so.

like image 499
Sarvesh Singh Avatar asked Jun 23 '15 05:06

Sarvesh Singh


People also ask

How do I add a button to a Django project?

First, install it: pip install django-object-actions . (Also add django-object-actions to your requirements file if you have one). Second, add django_object_actions to your INSTALLED_APPS . You should now see an Imports button in the admin, and when pressed, the imports function defined in ImportAdmin will be called.

How do I link to my Django admin?

If needed, run the Django app again with python manage.py runserver 0.0. 0.0:8000 and then navigate once more to the URL http:// your-server-ip :8000/admin/ to get to the admin login page. Then log in with the username and password and password you just created.

What we can do in admin portal in Django?

Overview. The Django admin application can use your models to automatically build a site area that you can use to create, view, update, and delete records. This can save you a lot of time during development, making it very easy to test your models and get a feel for whether you have the right data.


Video Answer


1 Answers

In order to override admin login page, you need to provide custom 'templates/admin/login.html' file

Check this answer to find the proper template file location and settings - https://stackoverflow.com/a/29997719/46548

like image 194
kmmbvnr Avatar answered Oct 20 '22 03:10

kmmbvnr