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. Managing Django’s settings might be tricky. There are severals issues which are encountered by any Django developer along the way. First one is caused by the default project structure. Django clearly offers us a single settings.py file. It seams reasonable at the first glance. And it is actually easy to use just after the start. But when it comes to the real-world it only causes misunderstanding and frustration. At some point, you will need to put some kind of personal settings in the main file: certificate paths, your username or password, database connection, etc. But putting your user-specific values inside the common settings is a bad practice. Other developers would have other settings, and it would just not work for all of you.

Features

  • 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
  • The local context is passed on to each file
  • Note that files are included in the order that glob returns them
  • You can modify common settings in environment settings simply importing them
  • This package has no dependencies itself

Project Samples

Project Activity

See All Activity >

Categories

Frameworks, Libraries

License

BSD License

Follow django-split-settings

django-split-settings Web Site

Other Useful Business Software
Build AI Apps with Gemini 3 on Vertex AI Icon
Build AI Apps with Gemini 3 on Vertex AI

Access Google’s most capable multimodal models. Train, test, and deploy AI with 200+ foundation models on one platform.

Vertex AI gives developers access to Gemini 3—Google’s most advanced reasoning and coding model—plus 200+ foundation models including Claude, Llama, and Gemma. Build generative AI apps with Vertex AI Studio, customize with fine-tuning, and deploy to production with enterprise-grade MLOps. New customers get $300 in free credits.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of django-split-settings!

Additional Project Details

Programming Language

Python

Related Categories

Python Frameworks, Python Libraries

Registered

2022-09-06