No project description provided
Project description
django-smart-admin
SmartAdmin is a set of small Django Admin utilities that aims to remove some of the common annoying configuration issues:
Demo is available at https://django-smart-admin.herokuapp.com/. (Any user/passsword combinantion is acceppted)
Install
pip install django-smart-admin
or (if you want to install extra admin features)
pip install django-smart-admin[full]
In your settings.py
INSTALLED_APPS = [
# "django.contrib.admin", # removes standard django admin
'django_sysinfo', # optional
'adminactions', # optional
'adminfilters', # optional
'admin_extra_urls', # optional
'smart_admin.logs', # optional
'smart_admin.templates',
'smart_admin',
.....
]
SMART_ADMIN_SECTIONS = {
'Demo': ['demo', ],
'Security': ['auth',
'auth.User',
],
'Logs': ['admin.LogEntry',
],
'Other': [],
'_hidden_': ["sites"]
}
# add some bookmark
SMART_ADMIN_BOOKMARKS = [('GitHub', 'https://github.com/saxix/django-smart-admin')]
# no special permissions to see bookmarks
SMART_ADMIN_BOOKMARKS_PERMISSION = None
# add 'profile' link on the header
SMART_ADMIN_PROFILE_LINK = True
# display all users action log, not only logged user
SMART_ADMIN_ANYUSER_LOG = True
In your urls.py
import adminactions.actions as actions
from django.contrib.admin import site
admin.autodiscover()
actions.add_to_site(site)
urlpatterns = [
....
path('adminactions/', include('adminactions.urls')),
]
Configuration
from smart_admin.utils import match, regex
SMART_ADMIN_SECTIONS = {
"Security": [
"auth",
],
}
Links
Stable |
||||
Development |
||||
Project home page: |
||||
Issue tracker: |
||||
Download: |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-smart-admin-1.0.0.tar.gz
(13.6 kB
view hashes)