All Projects → MechanisM → django-confy

MechanisM / django-confy

Licence: MIT license
A comfy config for Django

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to django-confy

salak.rs
A multi layered configuration loader and zero-boilerplate configuration parser.
Stars: ✭ 27 (+8%)
Mutual labels:  configuration, env
environment
🌳 Environment variable configuration for Node.js made easy.
Stars: ✭ 12 (-52%)
Mutual labels:  configuration, env
goodconf
Transparently load variables from environment or JSON/YAML file.
Stars: ✭ 80 (+220%)
Mutual labels:  configuration, env
Node Convict
Featureful configuration management library for Node.js
Stars: ✭ 1,855 (+7320%)
Mutual labels:  configuration, env
env
A lightweight package for loading OS environment variables into structs for Go projects
Stars: ✭ 24 (-4%)
Mutual labels:  configuration, env
read-env
🔧 Transform environment variables into JSON object with sanitized values.
Stars: ✭ 60 (+140%)
Mutual labels:  configuration, env
croconf
A flexible and composable configuration library for Go that doesn't suck
Stars: ✭ 14 (-44%)
Mutual labels:  configuration
apollo.net
Apollo配置中心.Net客户端
Stars: ✭ 449 (+1696%)
Mutual labels:  configuration
config-file-provider-plugin
Jenkins plugin to administrate the maven settings (settings.xml).
Stars: ✭ 43 (+72%)
Mutual labels:  configuration
High-Traffic-wordpress-server-configuration
High Traffic WordPress server configuration Nginx (updated) PHP 7.4 PHP-fpm Mariadb (updated) Wordpress (updated) Cloudflare Full SSL
Stars: ✭ 31 (+24%)
Mutual labels:  configuration
dot-emacs
Emacs configuration
Stars: ✭ 23 (-8%)
Mutual labels:  configuration
k8s-env-gen
Kubernetes environment generator makes docker env files compatible with kubernetes
Stars: ✭ 19 (-24%)
Mutual labels:  env
setset
Powerful Incremental Type-driven Settings Engine.
Stars: ✭ 20 (-20%)
Mutual labels:  configuration
file-config
📄 Store and read configuration values using files on disk.
Stars: ✭ 26 (+4%)
Mutual labels:  configuration
env-dot-prop
♻️ Get, set, or delete nested properties of process.env using a dot path
Stars: ✭ 31 (+24%)
Mutual labels:  env
oconfigure
configuration script for BSD.lv projects
Stars: ✭ 36 (+44%)
Mutual labels:  configuration
dotfiles
An elegant way to manage dotfiles, commands, completions, configurations for terminal players.
Stars: ✭ 27 (+8%)
Mutual labels:  configuration
nvim
❤️ A neovim config repo.
Stars: ✭ 33 (+32%)
Mutual labels:  configuration
protoconfig
ProtoConfig 1.0: Open Standard for using, defining, and consuming software configuration input in a unified way.
Stars: ✭ 24 (-4%)
Mutual labels:  configuration
exenv
Exenv makes loading environment variables from external sources easy.
Stars: ✭ 35 (+40%)
Mutual labels:  env

Django-Confy

Comfy config for Django

Actually this code is just a few apps combined together.

Installation

pip install django-confy

Example for settings.py

from confy import env, database, cache

DEBUG = env('DEV')
SECRET_KEY = env('SECRET_KEY')

DATABASES = {'default': database.config()}

CACHES = {'default': cache.config()}

Example for .env file

DJANGO_SETTINGS_MODULE=project_name.settings
DEV=True
DATABASE_URL=sqlite:////server/apps/project_name/project_name.sqlite3
CACHE_URL=uwsgi://

Example manage.py

#!/usr/bin/env python
import sys
import confy
confy.read_environment_file()
if __name__ == "__main__":
    from django.core.management import execute_from_command_line
    execute_from_command_line(sys.argv)

Example for wsgi.py

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

License

MIT

Documentation

Documentation

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].