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:
Remove
'APP_DIRS': True,add
loaderstoOPTIONSlist 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',
]
)],
},
},
]