Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Nov 6, 2016
1 parent 7a462a6 commit ddb25e4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ This document records all notable changes to
This project adheres to `Semantic Versioning <http://semver.org/>`_.


1.2.0-dev (Unreleased)
----------------------
1.2.0 (2016-11-06)
------------------

* The exported ``settings`` object is an instance of ``dict`` subclass
* The exported ``settings`` object is now an instance of ``dict`` subclass
to allow iteration, etc.


Expand Down
16 changes: 14 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,20 @@ via ``settings.<KEY>``:
{% endif %}


Changing the variable name
--------------------------
The ``settings`` variable is an instance of ``dict`` subclass, so
you use all the methods ``dict`` provides. For example, you can iterate over
the keys and values using , ``settings.keys``, ``settings.values``,
``settings.items``etc:
.. code-block:: html
{% for key, value in settings.items %}
{{ key }}: {{ value }}
{% endfor %}
Changing the ``settings`` variable name
---------------------------------------

If you wish to change the name of the context variable to something besides
``settings``, add ``SETTINGS_EXPORT_VARIABLE_NAME = 'custom_name'``
Expand Down
2 changes: 1 addition & 1 deletion django_settings_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.core.exceptions import ImproperlyConfigured


__version__ = '1.1.0'
__version__ = '1.2.0'


VARIABLE_NAME = getattr(django_settings,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="django-settings-export",
version='1.1.0',
version='1.2.0',
author="Jakub Roztocil",
author_email="jakub@roztocil.co",
description='This Django app allows you to export'
Expand Down

0 comments on commit ddb25e4

Please sign in to comment.