This should serve as a reusable django app for representing tiers. Currently it only implements the "Trial" tier but it should be easily extendable.
Add tiers
to INSTALLED_APPS
.
Set TIERS_EXPIRED_REDIRECT_URL
and TIERS_ORGANIZATION_MODEL
in settings. Run manage.py migrate
.
Add tiers.middleware.TierMiddleware
to MIDDLEWARE in settings.py.
You might want to add it at the top.
mkvirtualenv django-tiers
make install-dev
make install-test-deps
py.test