An open API service indexing awesome lists of open source software.

https://github.com/engineervix/blog-post--wagtailadmin-field-visibility-toggle

This is a trivial Wagtail project created as part of a blog post
https://github.com/engineervix/blog-post--wagtailadmin-field-visibility-toggle

Last synced: 22 days ago
JSON representation

This is a trivial Wagtail project created as part of a blog post

Awesome Lists containing this project

README

          

# Conditional Display of Fields in Wagtail Admin

> An example Wagtail application to illustrate the concept. See blog post [here](https://blog.victor.co.zm/conditional-display-of-fields-in-wagtail-admin)

[![CI/CD](https://github.com/engineervix/blog-post--wagtailadmin-field-visibility-toggle/actions/workflows/main.yml/badge.svg)](https://github.com/engineervix/blog-post--wagtailadmin-field-visibility-toggle/actions/workflows/main.yml)

[![python3](https://img.shields.io/badge/python-3.13-brightgreen.svg)](https://www.python.org/downloads/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Conventional Changelog](https://img.shields.io/badge/changelog-conventional-brightgreen.svg)](http://conventional-changelog.github.io)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)

## Development

### First things first

I recommend you test this with Python ~~3.12~~ 3.13, because that's what I used for this particular project. However, it _should_ hopefully work with lower Python versions such us 3.12, 3.11 and 3.10.

You can use [pyenv](https://github.com/pyenv/pyenv) to install multiple python versions on your machine. Once you have your Python installed, create a [**virtual environment**](https://realpython.com/python-virtual-environments-a-primer/) and install dependencies via `pip install -r requirements.txt`.

### Getting Started

- Apply database migrations via `./manage.py migrate`
- Create a `superuser` via `./manage.py createsuperuser`
- Run the development server via `./manage.py runserver`

You can access the development server at . Login to the Admin at

---