django-singleton-model 0.2.3

Creator: codyrutscher

Last updated:

Add to Cart

Description:

djangosingletonmodel 0.2.3

Django Singleton Model



Singleton design-pattern implementation for using with django models and
works with more recent versions of django

Installing
Install the package
$ pip3 install django-singleton-model
and that’s it. Don’t add it to INSTALLED_APPS.


Using
Import the SingletonModel class and inherit from it
from singleton_model import SingletonModel

class MySingleModel(SingletonModel):
pass


Running tests
Go into example folder
$ cd example
and run them
$ ./manage.py test


Troubleshooting
Check the example folder if you have any doubts. Or you can create an
issue.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.