Skip to main content

A simple class Singleton for create models like "dynamic settings"

Project description

django-newsingleton

A simple class Singleton for create models like 'dynamic settings'

How to install the package

To install the package, run:

pip install django-newsingletone

In settings.py write next stuff:

INSTALLED_APPS = [
    ...,
    'singleton',
    ...,
]

How to use?

from django.db import models
from singleton.models import Singleton

class DynamicSettings(Singleton):
    setting_name = models.BooleanField(default=False)
    """
    other settings
    ...
    """

And then:

python manage.py makemigrations
python manage.py migrate

Version

Current version: 1.0

Updates

This package won't have updates, except of bug updates.

Author

pavelbeard

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_newsingleton-1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_newsingleton-1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file django_newsingleton-1.0.tar.gz.

File metadata

  • Download URL: django_newsingleton-1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for django_newsingleton-1.0.tar.gz
Algorithm Hash digest
SHA256 12f14292c39822882fa35c3cba464301ce8531dcfb97adb83e51a899bfa599d2
MD5 6013b510759b70506acba7aa8a0a9c04
BLAKE2b-256 09b2fa0ab649160220d860e5efd3fb744d9defa70086da8ee3cb1760b243d032

See more details on using hashes here.

File details

Details for the file django_newsingleton-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_newsingleton-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c40a7cae180ae58bf00be5b1cc6944a9818f6cbf832455012c54fb647f44b8d
MD5 862da47f1e52f0ec17deea5579c7378e
BLAKE2b-256 e13cb59c4cbb684e33d431986fb01fe90dc3a3e59aab2a90c7d45c90f8140a58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page