2018-07-23 16:22:46 +00:00
Getting Started
===============
Installation
------------
::
pip install django-eav2
2021-10-21 17:57:37 +00:00
Configuration
-------------
2018-07-23 16:22:46 +00:00
2021-10-21 17:57:37 +00:00
After you've installed the package, you have to add it to your Django apps
2018-07-23 16:22:46 +00:00
::
2021-10-21 17:57:37 +00:00
INSTALLED_APPS = [
...
'eav',
]
2018-07-23 16:22:46 +00:00
2021-10-21 17:57:37 +00:00
Note: Django 2.2 Users
^^^^^^^^^^^^^^^^^^^^^^
2018-07-23 16:22:46 +00:00
2021-10-21 17:57:37 +00:00
Since `` models.JSONField() `` isn't supported in Django 2.2, we use `django-jsonfield-backport <https://github.com/laymonage/django-jsonfield-backport> `_
to provide `JSONField <https://docs.djangoproject.com/en/dev/releases/3.1/#jsonfield-for-all-supported-database-backends> `_
functionality.
2018-07-23 16:22:46 +00:00
2021-10-21 17:57:37 +00:00
This requires adding `` django_jsonfield_backport `` to your INSTALLED_APPS as well.
2018-07-23 16:22:46 +00:00
2021-10-21 17:57:37 +00:00
::
2018-07-23 16:22:46 +00:00
2021-10-21 17:57:37 +00:00
INSTALLED_APPS = [
...
2018-07-23 16:22:46 +00:00
'eav',
2021-10-21 17:57:37 +00:00
'django_jsonfield_backport',
2018-07-23 16:22:46 +00:00
]