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

Project details


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.1.tar.gz (3.0 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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_newsingleton-1.1.tar.gz
  • Upload date:
  • Size: 3.0 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.1.tar.gz
Algorithm Hash digest
SHA256 090a9621a26c29c47fe9f6bc9fa602eb77cf3a0e987cfa041c6bda511bb84c00
MD5 25ee86083650a16a5c88978f57928cee
BLAKE2b-256 2f093923d4c2e880259f5fb93d07667080ea480419e00562d08354d88c382d7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_newsingleton-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2eda4457016fb5a44e66d5e3e53c460cb3fa0b25c991f878adc27b29254e858
MD5 f2793b44301aec32fad87bb3a47c2b76
BLAKE2b-256 793c9c450c3a9c6d97ac66ccf0380ee7769e4dc1aeaf05e6a7936ccffb527638

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