Django-simptools is a library with useful functions/classes for daily usage.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
django_simptools
test_project
.hgignore
README.rst
requirments
setup.py

README.rst

About

Django-simptools is a collection with useful functions/classes for daily usage.

Dependencies

See requirements file:

pip install -r requirements

Installation

Installation from github:

pip install -e git+https://github.com/RANUX/django-simptools#egg=django-simptools

money.forms.MoneyField

Example:

from moneyed.classes import CURRENCIES

CURRENCY_CHOICES = [(CURRENCIES['RUB'].code, CURRENCIES['RUB'].name)]

class MoneyForm(forms.Form):
    money = MoneyField(currency_widget=CurrencySelectWidget(choices=CURRENCY_CHOICES))

money.models.fields.MoneyField

Example:

from django_simptools.money.models.fields import MoneyField

class ModelWithVanillaMoneyField(models.Model):
    money = MoneyField(max_digits=10, decimal_places=2)

RandomUIDAbstractModel

An abstract base class model that provides positive random uid field.

Testing

Go to django-simptools directory and run tests:

$ cd test_project/
$ python manage.py test tests

Contributing

The source is available on GitHub - to contribute to the project, fork it on GitHub and send a pull request, all contributions and suggestions are welcome!