mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-17 06:50:24 +00:00
37 lines
781 B
ReStructuredText
37 lines
781 B
ReStructuredText
Getting Started
|
|
===============
|
|
|
|
Installation
|
|
------------
|
|
::
|
|
|
|
pip install django-eav2
|
|
|
|
Configuration
|
|
-------------
|
|
|
|
After you've installed the package, you have to add it to your Django apps
|
|
::
|
|
|
|
INSTALLED_APPS = [
|
|
...
|
|
'eav',
|
|
]
|
|
|
|
Note: Django 2.2 Users
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
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.
|
|
|
|
This requires adding ``django_jsonfield_backport`` to your INSTALLED_APPS as well.
|
|
|
|
|
|
::
|
|
|
|
INSTALLED_APPS = [
|
|
...
|
|
'eav',
|
|
'django_jsonfield_backport',
|
|
]
|