📜 ⬆️ ⬇️

Django Admin Bootstrap Theme

I'll be brief:



Details, that does not work yet, and how to install it - under the cut.
')
Thanks to the Christmas weekend, it was time to screw the Bootstrap from Twitter to the Django admin panel. Not everything works yet, it was also tested not everywhere, I post it as it is :)

Repository: https://bitbucket.org/salvator/django-admintools-bootstrap/

Put using pip (preferably in virtualenv):

$ pip install -e hg+https://bitbucket.org/salvator/django-admintools-bootstrap#egg=admintools_bootstrap

django-admin-tools , if not installed, will be installed from dependencies. They need to be configured ( manual ).

Because In the current version of admintools-bootstrap , submenus do not work, it is advisable to create your own admin_tools menu configuration with up to two levels of nesting ( manual ).

Once you have admin admin admin, you can connect bootstrap.

Editing the settings, you need to add admintools_bootstrap to the top of the INSTALLED_APPS list.

If you have static files configured, Django will pick up the static from the package and everything should work right away. If not, write bug reports :)

What works:



The nested admin tools menus do not work yet, but I think it will get better with time.

A couple of screenshots of what happened:

The list (the name of the site is derived from Site.objects.get_current) + some more frills of the interface, while this is the latest version


Next - the older screenshots:

Login


List


Dashboard


I think who will need, finish the application for themselves. Do not worry, no one is going to throw. Bugreport and patches are welcome.

UPD: adapted login page, fixed a couple of bugs, chose for selects
UPD2: if you have the django.contrib.sites application connected, then the site name displayed in the navigation and in the title is now taken from Site.objects.get_current (). You no longer need to edit the stalls to change the name of the site in the admin panel.

UPD3: Porting Bootstrap 2.0 in progress

Source: https://habr.com/ru/post/135908/


All Articles