Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.56 KB

README.md

File metadata and controls

66 lines (41 loc) · 1.56 KB

django-customer-billing

Build Status PyPI version Requirements Status Coverage Status License: MIT

Requirements

  • Python: 3.6 and over
  • Django: 2.2 and over

Installation

pip install django-customer-billing

Usage

Add billing to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'billing.apps.BillingConfig',
    'import_export',
    ...
)

Run the migrations:

./manage.py migrate

Development

To install all dependencies:

pip install -e .

To run unit tests:

pip install pytest-django
pytest

To lint, typecheck, unit test:

tox

To generate a diagram representing the state-machines:

pip install graphviz
./manage.py graph_transitions -o docs/state-machines.png

To install the version being developed into another django project:

pip install -e <path-to-this-directory>