Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/multmeio/django-hstore-flattenfields
Django with dynamic fields in hstore
https://github.com/multmeio/django-hstore-flattenfields
Last synced: 13 days ago
JSON representation
Django with dynamic fields in hstore
- Host: GitHub
- URL: https://github.com/multmeio/django-hstore-flattenfields
- Owner: multmeio
- License: bsd-3-clause
- Created: 2012-10-15T23:52:57.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T17:46:05.000Z (over 3 years ago)
- Last Synced: 2024-10-02T19:37:09.683Z (about 1 month ago)
- Language: Python
- Size: 814 KB
- Stars: 36
- Watchers: 5
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Django-hstore-flattenfields
===========================
[![PyPi version](https://pypip.in/v/django_hstore_flattenfields/badge.png)](https://pypi.python.org/pypi/django_hstore_flattenfields/)
[![Downloads](https://pypip.in/d/django_hstore_flattenfields/badge.png)](https://crate.io/packages/django_hstore_flattenfields/)
[![Coverage Status](https://coveralls.io/repos/multmeio/django-hstore-flattenfields/badge.png?branch=master)](https://coveralls.io/r/multmeio/django-hstore-flattenfields?branch=master)
[![Code Health](https://landscape.io/github/multmeio/django-hstore-flattenfields/master/landscape.png)](https://landscape.io/github/multmeio/django-hstore-flattenfields/master)
[![Build Status](https://travis-ci.org/multmeio/django-hstore-flattenfields.png?branch=master)](https://travis-ci.org/multmeio/django-hstore-flattenfields)Django-hstore-flattenfields is an alternative for who want to have a Dynamic Scheme in Django without rely on a NoSQL database. Django-hstore-flattenfields add "dynamic fields" in Django Models, using the [Hstore](http://www.postgresql.org/docs/9.1/static/hstore.html) extension built in the PostgreSQL v9.1+. This way you can quickly add new fields in a Model, with some great features.
*Django-hstore-flattenfields is built and used in the [Multmeio](http://www.multmeio.com.br) enterprise.*
#### Some great features are:
* ModelForms
* *.objects.create()
* Automatic type parsing
* QuerySet filters (exact, iexact, contains, icontains, startswith, istartswith, endswith, iendswith, in, lt, lte, gt, gte)
* AggregationsInstall and usage
-----------------#### Installation
Install django-hstore-flattenfields with pip:```sh
$ pip install django-hstore-flattenfields
```You're done! django-hstore-flattenfields is ready to use! ;)
#### Usage and example
For a full example click [here](https://github.com/multmeio/django-hstore-flattenfields/tree/master/example).
Diagram Application
![diagram](https://raw.github.com/multmeio/django-hstore-flattenfields/master/doc/application_diagram.png)
Development
------------Star and follow us!
Fork and clone this repository.
```sh
$ git clone [email protected]:/django-hstore-flattenfields.git
```*Change \ to your GitHub account.*
Cd into django-hstore-flattenfields directory and install it's dependencies:
```sh
$ cd django-hstore-flattenfields/
$ pip install -r requirements.txt
```Now start pushing! :D
Help
--------Read our [documentation](http://django-hstore-flattenfields.readthedocs.org).
*TODO Add contact/help options*