Skip to content

Commit e4e6a08

Browse files
committed
Basic documentation
1 parent 05e2bea commit e4e6a08

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

docs/index.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# django-postgres-extra
2+
3+
django-postgres-extra aims to make all of PostgreSQL's awesome features available through the Django ORM. We do this by taking care of all the hassle. As opposed to the many small packages that are available to try to bring a single feature to Django with minimal effort. django-postgres-extra goes the extra mile, with well tested implementations, seamless migrations and much more.
4+
5+
With seamless we mean that any features we add will work truly seamlessly. You should not have to manually modify your migrations to work with fields and objects provided by this package.
6+
7+
## Features
8+
We are currently aiming on having the following features available:
9+
10+
* [hstore](https://www.postgresql.org/docs/9.1/static/hstore.html)
11+
* UNIQUE constaints
12+
* NOT-NULL constaints
13+
14+
* [ltree](https://www.postgresql.org/docs/9.1/static/ltree.html)
15+
16+
* [native upsert](https://www.postgresql.org/docs/9.5/static/sql-insert.html#SQL-ON-CONFLICT)
17+
18+
## Installation
19+
20+
1. Install the package from PyPi:
21+
22+
$ pip install django-postgres-extra
23+
24+
2. Add `postgres_extra` and `django.contrib.postgres` to your `INSTALLED_APPS`:
25+
26+
INSTALLED_APPS = [
27+
....
28+
29+
'django.contrib.postgres',
30+
'psqlextra'
31+
]
32+
33+
3. Set the database engine to `psqlextra.backend`:
34+
35+
DATABASES = {
36+
'default': {
37+
...
38+
'ENGINE': 'psqlextra.backend'
39+
}
40+
}
41+
42+
## Requirements
43+
In order to use this package, your project must be using:
44+
45+
* Python 3.5, or newer
46+
* PostgreSQL 9.6 or newer
47+
48+
Python 3.5 is required because type hints are used. A feature only available in Python 3.5 and newer. PostgreSQL 9.6 is required to take advantage of the latest features such as `ltree`.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
site_name: django-postgres-extra

0 commit comments

Comments
 (0)