diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8a1d0c064..b72e19cad 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -22,6 +22,7 @@ Changelog * Added `--schema-only` option to `update_index` management command * Added meaningful default icons to `StreamField` blocks (Benjamin Bach) * Added title text to action buttons in the page explorer (Liam Brenner) + * Changed project template to explicitly import development settings via `settings.dev` (Tomas Olander) * Fix: The currently selected day is now highlighted only in the correct month in date pickers (Jonas Lergell) * Fix: Fixed crash when an image without a source file was resized with the "dynamic serve view" * Fix: Registered settings admin menu items now show active correctly (Matthew Downey) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 2ebbfd56e..d96651cc4 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -123,6 +123,7 @@ Contributors * Roel Bruggink * Yannick Chabbert * Andy Babic +* Tomas Olander Translators =========== diff --git a/docs/releases/1.5.rst b/docs/releases/1.5.rst index a40eb70a0..99aa50940 100644 --- a/docs/releases/1.5.rst +++ b/docs/releases/1.5.rst @@ -47,6 +47,7 @@ Minor features * Added ``--schema-only`` option to ``update_index`` management command * Added meaningful default icons to ``StreamField`` blocks (Benjamin Bach) * Added title text to action buttons in the page explorer (Liam Brenner) + * Changed project template to explicitly import development settings via ``settings.dev`` (Tomas Olander) Bug fixes ~~~~~~~~~ @@ -62,7 +63,7 @@ Upgrade considerations ====================== The ``search_fields`` attribute on models should now be set to a list -===================================================================== +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On searchable models (eg, ``Page`` or custom ``Image`` models) the ``search_fields`` attribute should now be a list instead of a tuple. @@ -123,3 +124,11 @@ If you need the old behaviour back, where SSL certificates are not verified for } See the `Elasticsearch-py documentation `_ for more configuration options. + + +Project template now imports ``settings.dev`` explicitly +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +In previous releases, the project template's ``settings/__init__.py`` file was set up to import the development settings (``settings/dev.py``), so that these would be picked up as the default (i.e. whenever a settings module was not specified explicitly). However, in some setups this meant that the development settings were being inadvertently imported in production mode. + +For this reason, the import in ``settings/__init__.py`` has now been removed, and commands must now specify ``myproject.settings.dev`` or ``myproject.settings.production`` as appropriate; the supporting scripts (such as ``manage.py``) have been updated accordingly. As this is a change to the project template, existing projects are not affected; however, if you have any common scripts or configuration files that rely on importing ``myproject.settings`` as the settings module, these will need to be updated in order to work on projects created under Wagtail 1.5.