Skip to main content

A lighter admin for wagtail

Project description

This app customises the wagtail admin as follows:

Rich text

Some of the less useful features are removed (HR, undo/redo, H4, H5). Headings/paragraph come first (though https://stackoverflow.com/questions/10773813/adding-something-to-the-top-of-a-json-object). The active state of the rich text (.expand) does not expand anymore

Publication flow

The “submit for moderation” is hidden (it’s mostly confusing for the type of clients we have).

Install & setup

pip install wagtail_lightadmin

Add wagtail_lightadmin to your installed apps.

Tell wagtail to use the light rich text widget in your settings_default.py:

WAGTAILADMIN_RICH_TEXT_EDITORS = {
    # Original setting
    # 'default': {
    #     'WIDGET': 'wagtail.wagtailadmin.rich_text.HalloRichTextArea'
    # },
    'default': {
        'WIDGET': 'wagtail_lightadmin.rich_text.LighterRichTextArea'
    },
}

Make sure django knows about the new static files

manage.py collectstatic –no-input

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

wagtail_lightadmin-0.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file wagtail_lightadmin-0.1.tar.gz.

File metadata

File hashes

Hashes for wagtail_lightadmin-0.1.tar.gz
Algorithm Hash digest
SHA256 a38c2a6ada0d21fa92d44e35dcc3a994bd44ed045a701ced42b5518d8b5fd8e3
MD5 3548bf556129fd22ceb96083d1780e19
BLAKE2b-256 31c3346b6f0d1d86c753871d110534c925fa23fc40bd816e3007553e99c7e1a5

See more details on using hashes here.

Provenance

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