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': '主面板', '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

  • 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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page