-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update docs for django 2.2 config * chore: bump version to 1.0.0
- Loading branch information
Showing
4 changed files
with
44 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,23 +85,35 @@ In some use-cases, JSONB (binary JSON data) datatype (Postgres 9.4+ and analogou | |
|
||
## Installation | ||
|
||
You can install **django-eav2** from three sources: | ||
Install with pip | ||
|
||
```bash | ||
# From PyPI via pip | ||
pip install django-eav2 | ||
``` | ||
|
||
## Configuration | ||
|
||
Add `eav2` to `INSTALLED_APPS` in your settings. | ||
|
||
```python | ||
INSTALLED_APPS = [ | ||
... | ||
'eav', | ||
] | ||
``` | ||
|
||
### Note: Django 2.2 Users | ||
|
||
# From source via pip | ||
pip install git+https://github.com/lvm/django-eav2@master | ||
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. | ||
|
||
# From source via setuptools | ||
git clone [email protected]:lvm/django-eav2.git | ||
cd django-eav2 | ||
python setup.py install | ||
This requires adding `django_jsonfield_backport` to your `INSTALLED_APPS` as well. | ||
|
||
# To uninstall: | ||
python setup.py install --record files.txt | ||
rm $(cat files.txt) | ||
```python | ||
INSTALLED_APPS = [ | ||
... | ||
'eav', | ||
'django_jsonfield_backport', | ||
] | ||
``` | ||
|
||
## Getting started | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,43 +3,35 @@ Getting Started | |
|
||
Installation | ||
------------ | ||
|
||
You can install **django-eav2** from PyPI, git or directly from source: | ||
|
||
From PyPI | ||
^^^^^^^^^ | ||
:: | ||
|
||
pip install django-eav2 | ||
|
||
With pip via git | ||
^^^^^^^^^^^^^^^^ | ||
:: | ||
|
||
pip install git+https://github.com/lvm/django-eav2@master | ||
Configuration | ||
------------- | ||
|
||
From source | ||
^^^^^^^^^^^ | ||
After you've installed the package, you have to add it to your Django apps | ||
:: | ||
|
||
git clone [email protected]:lvm/django-eav2.git | ||
cd django-eav2 | ||
python setup.py install | ||
INSTALLED_APPS = [ | ||
... | ||
'eav', | ||
] | ||
|
||
To uninstall:: | ||
Note: Django 2.2 Users | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
python setup.py install --record files.txt | ||
rm $(cat files.txt) | ||
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. | ||
|
||
Configuration | ||
------------- | ||
This requires adding ``django_jsonfield_backport`` to your INSTALLED_APPS as well. | ||
|
||
After you've installed the package, you have to add it to your Django apps:: | ||
|
||
INSTALLED_APPS = [ | ||
# ... | ||
:: | ||
|
||
INSTALLED_APPS = [ | ||
... | ||
'eav', | ||
|
||
# ... | ||
'django_jsonfield_backport', | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters