Skip to main content

A simple Django app to store/access project wide persistent settings.

Project description

# FastSettings

Version:

0.5

Download:

<https://pypi.org/project/django-fastsettings>

Source:

<https://github.com/wickeym/django-fastsettings>

Keywords:

django, redis, database, settings, fastsettings

Django FastSettings stores settings in the database and syncs it to redis, so that access is “fast”. This will work without redis, it will simply fetch from the database each time.

## Quick start

  • pip install django-fastsettings

  • Add “fastsettings” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'fastsettings',
    ]
  • Add the Redis connection settings to the django settings.py file

    ` python # PROJECT SETTINGS (used in fastsettings) REDIS_HOST = 'localhost' REDIS_PORT = 6379 REDIS_DB = 0 REDIS_PASSWORD = "your_redis_password" `

  • For logging, add a handler for “fastsettings_logger” in your logging configuration:

  • Run python manage.py migrate to create the fastsettings models.

  • Start the development server and visit <http://127.0.0.1:8000/admin/> to create a fastsetting (you’ll need the Admin app enabled).

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-fastsettings-0.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

django_fastsettings-0.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file django-fastsettings-0.5.tar.gz.

File metadata

  • Download URL: django-fastsettings-0.5.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for django-fastsettings-0.5.tar.gz
Algorithm Hash digest
SHA256 ddb6f4fdadb8cb29d7e385c87cc835fb62b4597d91648b26304c89805b550694
MD5 e04bdb397948fefa5f2f6afc604d5c22
BLAKE2b-256 538714df68fa7c4995e5e17b8d4559fcdb9540d69e4fb0085aad48745dfde9f6

See more details on using hashes here.

File details

Details for the file django_fastsettings-0.5-py3-none-any.whl.

File metadata

  • Download URL: django_fastsettings-0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for django_fastsettings-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e996b6db5fe6fc781ff2d5a8fa0cff38440c1b6d1fb4361c3a4a3b0c5919b919
MD5 f95bcce58b8578ce3c3657ef20ebbce8
BLAKE2b-256 8dae34431cead9e7eea86b69afb3badcf1ca5349249a43fc785835cf5aebf32b

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