Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Custom settings loader for standalone django apps

Project Description

Django Custom Settings
======================

# FAQ

* What does this do?

> Register your custom standalone app settings into Django conf, so they can be overrided by users of your standalone app.

* How does it work?

> Create a settings.py in your app. Make sure your settings are all caps.
> In your init file for you app, add a call to django-custom-settings and you're done.

# Full Example

```python
# __init__.py
from custom_settings.loader import load_settings
load_settings(__name__)
```

```python
# settings.py
MYAPP_SETTINGS_FOO = "foo"
MYAPP_SETTINGS_BAR = "bar"

myapp_settings_that_wont_be_loaded = "will not be available, because it's not all uppercase"
```

```python
# usage, on views.py, for example
from django.conf import settings

def home(request):

if settings.MYAPP_SETTINGS_FOO == "foo":
return "this is a foo"
else:
return "this is not a foo"
```

History
=======

## 0.1.0 (2016-02-01)

* First release on PyPI.

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
django-custom-settings-0.1.4.tar.gz
(5.1 kB) Copy SHA256 Hash SHA256
Source None May 30, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting