All Projects → sobolevn → Django Split Settings

sobolevn / Django Split Settings

Licence: bsd-3-clause
Organize Django settings into multiple files and directories. Easily override and modify settings. Use wildcards and optional settings files.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Django Split Settings

Django Settings Export
Access Django settings from templates the right way™
Stars: ✭ 167 (-75.58%)
Mutual labels:  settings, django
Django Admin Interface
django's default admin interface made customizable. popup windows replaced by modals. :mage: ⚡️
Stars: ✭ 717 (+4.82%)
Mutual labels:  settings, django
Django Environ
Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application.
Stars: ✭ 2,425 (+254.53%)
Mutual labels:  settings, django
Dynaconf
Configuration Management for Python ⚙
Stars: ✭ 2,082 (+204.39%)
Mutual labels:  settings, django
Django Dynamic Preferences
Dynamic global and instance settings for your django project
Stars: ✭ 238 (-65.2%)
Mutual labels:  settings, django
Django Rest Framework Docs
Document Web APIs made with Django Rest Framework
Stars: ✭ 607 (-11.26%)
Mutual labels:  django
Django Fiber
Django Fiber - a simple, user-friendly CMS for all your Django projects
Stars: ✭ 653 (-4.53%)
Mutual labels:  django
Django blog tutorial
Django搭建博客教程
Stars: ✭ 599 (-12.43%)
Mutual labels:  django
Graphite Web
A highly scalable real-time graphing system
Stars: ✭ 5,384 (+687.13%)
Mutual labels:  django
Django Lifecycle
Declarative model lifecycle hooks, an alternative to Signals.
Stars: ✭ 672 (-1.75%)
Mutual labels:  django
Modern Django
Modern Django: A Guide on How to Deploy Django-based Web Applications in 2017
Stars: ✭ 662 (-3.22%)
Mutual labels:  django
Django Graphql Jwt
JSON Web Token (JWT) authentication for Graphene Django
Stars: ✭ 649 (-5.12%)
Mutual labels:  django
Moviegeek
A django website used in the book Practical Recommender Systems to illustrate how recommender algorithms can be implemented.
Stars: ✭ 608 (-11.11%)
Mutual labels:  django
Python24
网上搜集的自学python语言的资料集合,包括整套代码和讲义集合,这是至今为止所开放网上能够查找到的最新视频教程,网上找不到其他最新的python整套视频了,. 具体的无加密的mp4视频教程和讲义集合可以在更新的Readme文件中找到,下载直接打开就能播放,项目从零基础的Python教程到深度学习,总共30章节,其中包含Python基础中的飞机大战项目,WSGI项目,Flask新经资讯项目, Django的电商项目(本应该的美多商城项目因为使用的是Vue技术,所以替换为Django天天生鲜项目)等等,希望能够帮助大家。资源搜集劳神费力,能帮到你的话是我的福分,望大家多多支持,喜欢本仓库的话,记得Star哦。
Stars: ✭ 650 (-4.97%)
Mutual labels:  django
Django Newsletter
An email newsletter application for the Django web application framework, including an extended admin interface, web (un)subscription, dynamic e-mail templates, an archive and HTML email support.
Stars: ✭ 605 (-11.55%)
Mutual labels:  django
old vespene
DISCONTINUED: a frozen fork will exist forever at mpdehaan/vespene
Stars: ✭ 672 (-1.75%)
Mutual labels:  django
Django Paypal
A pluggable Django application for integrating PayPal Payments Standard or Payments Pro
Stars: ✭ 602 (-11.99%)
Mutual labels:  django
Dwitter
Social network for short js demos
Stars: ✭ 618 (-9.65%)
Mutual labels:  django
Django Dashing
django-dashing is a customisable, modular dashboard application framework for Django to visualize interesting data about your project. Inspired in the dashboard framework Dashing
Stars: ✭ 660 (-3.51%)
Mutual labels:  django
Python Spider
豆瓣电影top250、斗鱼爬取json数据以及爬取美女图片、淘宝、有缘、CrawlSpider爬取红娘网相亲人的部分基本信息以及红娘网分布式爬取和存储redis、爬虫小demo、Selenium、爬取多点、django开发接口、爬取有缘网信息、模拟知乎登录、模拟github登录、模拟图虫网登录、爬取多点商城整站数据、爬取微信公众号历史文章、爬取微信群或者微信好友分享的文章、itchat监听指定微信公众号分享的文章
Stars: ✭ 615 (-10.09%)
Mutual labels:  django

django-split-settings logo


wemake.services test codecov Docs Python Version wemake-python-styleguide

Organize Django settings into multiple files and directories. Easily override and modify settings. Use wildcards in settings file paths and mark settings files as optional.

Read this blog post for more information. Also, check this example project.

Requirements

While this package will most likely work with the most versions of django, we officially support:

  • 1.11
  • 2.2
  • 3.0
  • 3.1

This package has no dependencies itself.

In case you need older python / django versions support, then consider using older versions of django-split-settings.

Installation

pip install django-split-settings

Usage

Replace your existing settings.py with a list of components that make up your Django settings. Preferably create a settings package that contains all the files.

Here's a minimal example:

from split_settings.tools import optional, include

include(
    'components/base.py',
    'components/database.py',
    optional('local_settings.py')
)

In the example, the files base.py and database.py are included in that order from the subdirectory called components/. local_settings.py in the same directory is included if it exists.

Note: The local context is passed on to each file, so each following file can access and modify the settings declared in the previous files.

We also made an in-depth tutorial.

Tips and tricks

You can use wildcards in file paths:

include('components/my_app/*.py')

Note that files are included in the order that glob returns them, probably in the same order as what ls -U would list them. The files are NOT in alphabetical order.

You can modify common settings in environment settings simply importing them

# local_settings.py
from components.base import INSTALLED_APPS

INSTALLED_APPS += (
  'raven.contrib.django.raven_compat',
)

Do you want to contribute?

Read the CONTRIBUTING.md file.

Version history

See CHANGELOG.md file.

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].