Skip to main content

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 screenshoot Requirements

  • django >= 2.0
  • python >= 3.5

How to use

  • Install with pip

    $ pip install django-vali

  • Add vali to your INSTALLED_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': 'dashboard', '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',
}
    $ ./manage.py runserver

Thanks

License

This project is licensed under the MIT License

Todo

-(remoe)modify ValiRelatedFieldWidgetWrapper with Vali theme -(done) replace ValiRelatedFieldWidgetWrapper with ValiCheckboxSelectMultiple, show user permission with groups -(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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-vali-0.2.0.tar.gz (481.1 kB) Copy SHA256 hash SHA256 Source None Jun 24, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page