Skip to main content
====================
Django Dynamic Settings
====================

Installation
============

1. Add ``dynsettings`` to your ``INSTALLED_APPS``:
<pre>
INSTALLED_APPS = (
...
'dynsettings',
)
</pre>

2. Run syncdb to create dynsettings table.

Usage
=============

1. Import dynsettings object to manipulate your settings:
<pre>
from dynsettings.models import dynsettings
</pre>

2. Define your initial settings values in your settings.py (optional):
<pre>
DYNSETTINGS = {
'my_initial_data': 12345
}
</pre>

3. Use dynamic settings like a dictionary:
<pre>
import datetime

dynsettings['my_data_name'] = u'Today is'
dynsettings['my_data_name2'] = datetime.datetime.now()

print dynsettings['my_data_name'], dynsettings['my_data_name2'].strftime("%d/%m/%Y")
print dynsettings['my_initial_data']

dynsettings['my_initial_data'] = "abcd"

print dynsettings['my_initial_data']
</pre>

The code above will print the following output: <br />
\>\>\> Today is 18/01/2013 <br />
\>\>\> 12345<br />
\>\>\> abcd

Release files for django-dynsettings 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-dynsettings 0.1.0
File Size Uploaded
django-dynsettings-0.1.0.zip 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-dynsettings 0.1.0
File Interpreter ABI Platform
django-dynsettings-0.1.0.win32-py2.7.exe Details

Total release size: 205.7 kB

Release files / django-dynsettings-0.1.0.zip

Download URL django-dynsettings-0.1.0.zip
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cca0c8a7c290b9ce5e5fb5534bac13992292c805eaa7725b2c6da24ded57a93c
BLAKE2b-256 checksum
How to use checksums
ea3ca1959187ab8a273dadd71465391ed158d6028ee835eef431797ce0e6fbe9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django-dynsettings-0.1.0.win32-py2.7.exe

Download URL django-dynsettings-0.1.0.win32-py2.7.exe
Size 200.6 kB
Tags Source
SHA-256 checksum
How to use checksums
585cd07132ee599f013b9c7274e3101beb42d8ac531b3faaedf2eb9d8c5bf2ac
BLAKE2b-256 checksum
How to use checksums
0a8fa590d5fad5ace097362e7f85ba0ca742d7f88f0d5674385efef736b92f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page