Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-singleton-model

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-singleton-model

Simple package for impleting models using singleton design pattern

  • 0.2.3
  • PyPI
  • Socket score

Maintainers
1

Django Singleton Model

|Build Status|

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

Installing

Install the package

.. code:: bash

$ 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

.. code:: python

from singleton_model import SingletonModel

class MySingleModel(SingletonModel):
    pass

Running tests

Go into example folder

.. code:: bash

$ cd example

and run them

.. code:: bash

$ ./manage.py test

Troubleshooting

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

.. |Build Status| image:: https://travis-ci.org/icaropires/django-singleton-model.svg?branch=master

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc