Skip to content

Commit ddb25e4

Browse files
committed
v1.2.0
1 parent 7a462a6 commit ddb25e4

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ This document records all notable changes to
77
This project adheres to `Semantic Versioning <http://semver.org/>`_.
88

99

10-
1.2.0-dev (Unreleased)
11-
----------------------
10+
1.2.0 (2016-11-06)
11+
------------------
1212

13-
* The exported ``settings`` object is an instance of ``dict`` subclass
13+
* The exported ``settings`` object is now an instance of ``dict`` subclass
1414
to allow iteration, etc.
1515

1616

README.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,20 @@ via ``settings.<KEY>``:
9393
{% endif %}
9494

9595

96-
Changing the variable name
97-
--------------------------
96+
The ``settings`` variable is an instance of ``dict`` subclass, so
97+
you use all the methods ``dict`` provides. For example, you can iterate over
98+
the keys and values using , ``settings.keys``, ``settings.values``,
99+
``settings.items``etc:
100+
101+
.. code-block:: html
102+
103+
{% for key, value in settings.items %}
104+
{{ key }}: {{ value }}
105+
{% endfor %}
106+
107+
108+
Changing the ``settings`` variable name
109+
---------------------------------------
98110

99111
If you wish to change the name of the context variable to something besides
100112
``settings``, add ``SETTINGS_EXPORT_VARIABLE_NAME = 'custom_name'``

django_settings_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from django.core.exceptions import ImproperlyConfigured
99

1010

11-
__version__ = '1.1.0'
11+
__version__ = '1.2.0'
1212

1313

1414
VARIABLE_NAME = getattr(django_settings,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setup(
1515
name="django-settings-export",
16-
version='1.1.0',
16+
version='1.2.0',
1717
author="Jakub Roztocil",
1818
author_email="[email protected]",
1919
description='This Django app allows you to export'

0 commit comments

Comments
 (0)