Custome route in django admin - django

I wanted to customize my django admin route
Not from /admin to something else but to add new clickable custom route inside admin panel
Currently I have created superuser using python manage.py createsuperuser command.
I can login to django admin panel , but what I want is to have a custom route to be displayed in left sidebar or anywhere else after logging into django admin panel. My custom route is like localhost:8000/my-view/ and my-view should be displayed somewhere in admin panel.
TIA.

Related

Dropdown list in admin registration panel Django

I would like to have a dropdown list in the login field of authenti(fi)cation panel in Django : for admin and for a worker. Do you have any idea how to implement it?

is there any way to add button to django admin?

i want a button to call a view function from django admin. i want my button here my django admin panel
When i click on that button , it calls a specified view.
You have to override the default django admin template. Please read more here: https://docs.djangoproject.com/en/3.0/howto/overriding-templates/

how to use logging django admin all log to file

I have deployed a innner django web site , i have register some model class in admin.py like:
admin.site.register(models.Receiving)
admin.site.register(models.Vendor)
admin.site.register(models.Creator)
admin.site.register(models.CategoryOfitem)
i want to let all user operate all action at admin log write into a file ,how i can use the logging do it?
Log is in django_admin_log table in database used by django
Logging activity on Django's admin - Django

Removing(unregistering) a section from django admin page

From the django admin page, I wanted to remove a section of an app. At first, the admin.py had this contents:
admin.site.register(MyUser)
So I changed it to be:
admin.site.unregister(MyUser)
and it caused Internal Server Error.
What should I do to remove the section of account app from the admin page?
Just don't register you model in admin.py and it will be "removed" from admin page. Comment or delete this line instead of changing it:
# admin.site.register(MyUser)

How to allow non staff upload pictures with Django-TinyMCE and FileBrowser?

I'm using
* Django 1.3
* Django-TinyMCE 1.5 trunk
* Filebrowser 3.4
Now if I login with an account which is_staff, I could upload pictures via TinyMCE's insert image button. While if it is not a staff, the pop up window will redirect to django admin login page and if I login with is_staff account, the pictures will be listed.
How could I allow non staff to upload picture?
Override the clean method in the AdminAuthenticationForm class
Create a view outside the admin where a user can upload
Make the user staff
You do realize that if you do point 1 or 3 the user will have access to the whole admin section? That is probably not what you want so you should go with point 2.