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
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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