Skip to content

f-re/djaodjin-saas

 
 

Repository files navigation

djaodjin-saas is a Django application that implements the logic to support subscription-based Sofware-as-a-Service businesses.

Major Features:

  • Separate billing profiles and authenticated users
  • Double entry book keeping ledger
  • Flexible security framework

Full documentation for the project is available at Read-the-Docs

Development

After cloning the repository, create a virtualenv environment, install the prerequisites, create and load initial data into the database, then run the testsite webapp.

$ virtualenv-2.7 _installTop_
$ source _installTop_/bin/activate
$ pip install -r testsite/requirements.txt
$ make initdb
$ python manage.py runserver

# Browse http://localhost:8000/
# Login with username: donny and password: yoyo

To test payment through Stripe:

  1. Add your Stripe keys in the credentials file.

    STRIPE_PUB_KEY = "your_stripe_public_api_key" STRIPE_PRIV_KEY = "your_stripe_private_api_key"

  2. This Django App does not send notification e-mails itself. All major updates that would result in a e-mail sent trigger signals though. It is straightforward to send e-mails on a signal trigger in the main Django project. We provide sample e-mail templates here in the saas/templates/notification/ directory.

The latest versions of django-restframework implement paginators disconnected from parameters in views (i.e. no more paginate_by). You will thus need to define PAGE_SIZE in your settings.py

$ diff testsite/settings.py
+REST_FRAMEWORK = {
+    'PAGE_SIZE': 25,
+}

Release Notes

  • version 0.2.0 generic role, replaced Stripe Recipients by use of StripeConnect
  • version 0.1.8 refactor ledger to fully support backlog accounting
  • version 0.1.7 supports Django 1.7 and django-restframework 3.1

About

Django application for subscription businesses

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 81.3%
  • JavaScript 9.9%
  • HTML 8.6%
  • Makefile 0.2%