- Optional fixed (in CSS positioning terms) top menu with branding, user options (change password, logout, gravatar) and any other menu items
- Optional fully configurable left menu with nice WordPress style
- Left menu can be pinned (fixed CSS position) or unpinned and collapsed or expanded
- Awesome Font Awesome icons supported in both menus
- Multiple AdminSite's support with possibility to have different menus, colors and title for each one
- Supports Django 1.3.x, 1.4.x, 1.5.x
- WordPress look and feel for tables, inputs, buttons
- TinyMCE integration with WordPress theme
- django-filebrowser integration
- Bookmarks support
Try sample_project
here or download django-wpadmin
and run it on your own machine. sample_project
contains SQLite database file with prepopulated sample data.
Install django-wpadmin from PyPi:
pip install django-wpadmin
Or from Github:
pip install -e git+https://github.com/barszczmm/django-wpadmin.git#egg=django-wpadmin
Add to your
INSTALLED_APPS
beforedjango.contrib.admin
:INSTALLED_APPS = ( # Django WP Admin must be before django.contrib.admin 'wpadmin', 'wpadmin.menu', 'wpadmin.dashboard', )
- Copy one of the files from django-wpadmin/wpadmin/menu/templates/admin/ (there's one file for each supported Django version) into your
templates/admin/
folder and rename copied file tobase.html
(you can also create symbolic link). - Add django.core.context_processors.request to TEMPLATE_CONTEXT_PROCESSORS setting.
Add to settings.py
:
WPADMIN = {
'admin': {
'menu': {
'top': 'wpadmin.menu.menus.TopMenu',
'left': 'wpadmin.menu.menus.LeftMenu',
}
},
}
Please take a look at the code in sample_project.
This app takes a lot of ideas and a lot of code from django-admin-tools app, so it is also good idea to read django-admin-tools docs.
Python code is heavily based on django-admin-tools app. WordPress look and feel is of course inspired by WordPress.