Skip to main content

Django integration plugin for PyConfBox

Project description

PyConfBox Django Plugin

Django 애플리케이션에서 PyConfBox를 사용할 수 있게 해주는 플러그인입니다.

설치

pip install pyconfbox-django

사용법

Django 설정에 미들웨어 추가

# settings.py
MIDDLEWARE = [
    'pyconfbox_django.middleware.PyConfBoxMiddleware',
    # ... 다른 미들웨어들
]

# PyConfBox 설정
PYCONFBOX = {
    'default_storage': 'environment',
    'fallback_storage': 'memory',
    'env_prefix': 'DJANGO_',
}

Django 저장소 사용

from pyconfbox_django import DjangoStorage
from pyconfbox import Config

# Django 설정과 연동
django_storage = DjangoStorage()
config = Config(default_storage=django_storage)

# Django 설정에 자동 반영
config.set('DEBUG', True, scope='django')
config.set('SECRET_KEY', 'your-secret-key', scope='django')

라이선스

MIT License

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

pyconfbox_django-0.1.0.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

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

pyconfbox_django-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pyconfbox_django-0.1.0.tar.gz.

File metadata

  • Download URL: pyconfbox_django-0.1.0.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pyconfbox_django-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da04efcbd4bd0cedb6acf5d226fd6b59e8af6f5a7f561cde6bcb479860749469
MD5 2caf01a05d239340758f53caff86b564
BLAKE2b-256 a4778aab1d35d6a6d9d1d414ebc9ae7380a629d157fbf09feabeaae970fec8cc

See more details on using hashes here.

File details

Details for the file pyconfbox_django-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyconfbox_django-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9ddda9f60e89064e07ae36a157beba5bfaa2051654542646409ad3e7ca1251e
MD5 a17e8718700b85b8f70260af3a972afb
BLAKE2b-256 385d707d0b68d6380b690be856c672b55578bb22f3378bcc6414b9f0ae4bea36

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