a django admin theme using vali-admin with bootstrap4
Project description
Django-vali
- platform Backend part built using the
Django
, - replace default admin templates using
Vali Admin
Requirements
- django >= 2.0
- python >= 3.5
How to use
-
Install with pip
$ pip install django-vali
-
Add
vali
to yourINSTALLED_APPS
setting like this:
INSTALLED_APPS = (
'vali',
'django.contrib.admin',
...
)
- Config vali:
VALI_CONFIG = {
# the vali-admin themes default, blue, purple, green,brown
'theme': 'default',
'dashboard': {'name': '主面板', 'url': '/admin/'},
# the order for applist default, registry
# display applist by group: True
# e.g. {group: True}
# default check decorators vali.decorator.vali_models_group on ModelAdmin
# * otherwize use group_marker in verbose_name_plural, (will be deprecated in future version 0.2.0)*
# * e.g. {group: True, group_marker : '-'}
# verbose_name_plural = system-user
# * display the model "user" in group "system"
'applist': {"order": "registry", "group": True},
# default: //maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css
# 'font_awesome_url': 'font-awesome-4.7.0/css/font-awesome.min.css',
}
-
find more info for style customize at pratikborsadiya' blog
-
run server
$ ./manage.py runserver
- Point your browser to http://localhost:8000
Thanks
License
This project is licensed under the MIT License
Todo
- modify ValiRelatedFieldWidgetWrapper with Vali theme -(done) support more theme support -(done) app/model orders -(done) app/model groups
- ...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-vali-0.1.9.tar.gz
(479.9 kB
view hashes)