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.

Source Distribution

django-vali-0.2.0.tar.gz (481.1 kB view details)

Uploaded Source

File details

Details for the file django-vali-0.2.0.tar.gz.

File metadata

  • Download URL: django-vali-0.2.0.tar.gz
  • Upload date:
  • Size: 481.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-vali-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b4192db814397c8cbf6081de058dc5faf6c8ed7e308959ea89b9ae1f78f14128
MD5 4a997c1bbd73e46ca4885dd2ae5a41bb
BLAKE2b-256 820ba7639de297e864148c90b6f120c437493b8b77b0126b5820a7e5f9ea048e

See more details on using hashes here.

Supported by

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