InstallationΒΆ

$ pip install django-formify

Then add the app into INSTALLED_APPS in settings.py

INSTALLED_APPS = [
    ...,
    'django_viewcomponent',       # new
    'django_formify',             # new
]

Note

django_formify contains some components build using django_viewcomponent, to make it work, please also update TEMPLATES by following the instruction below.

Modify TEMPLATES section of settings.py as follows:

  1. Remove 'APP_DIRS': True,

  2. add loaders to OPTIONS list and set it to following value:

TEMPLATES = [
    {
        ...,
        'OPTIONS': {
            'context_processors': [
                ...
            ],
            'loaders':[(
                'django.template.loaders.cached.Loader', [
                    'django.template.loaders.filesystem.Loader',
                    'django.template.loaders.app_directories.Loader',
                    'django_viewcomponent.loaders.ComponentLoader',
                ]
            )],
        },
    },
]