https://github.com/chanmo/django-admin-left-menu
A left menu for django admin
https://github.com/chanmo/django-admin-left-menu
Last synced: about 1 year ago
JSON representation
A left menu for django admin
- Host: GitHub
- URL: https://github.com/chanmo/django-admin-left-menu
- Owner: ChanMo
- License: mit
- Created: 2019-08-22T00:55:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T03:11:48.000Z (almost 7 years ago)
- Last Synced: 2025-03-05T17:49:11.796Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Admin Left Menu
A left menu for django admin
## Tutorials
1. Install
```bash
$ pip install django-admin-left-menu
```
2. Add xadmin to Installed Apps
```python
INSTALLED_APPS = [
...
django.contrib.admin,
xadmin,
...
]
```
3. Copy base_site.html of django admin
```bash
$ mkdir templates/admin -p
$ wget https://raw.githubusercontent.com/django/django/master/django/contrib/admin/templates/admin/base.html -O templates/admin/base.html
```
4. Add left menu code to base.html
```html
...
...
{% if request.path != "/admin/login/" and request.path != "/admin/logout/" %}
{% include "xadmin/left_menu.html" %}
{% endif %}
...
...
```