Updated page_url tag to follow design decision

The agreed upon logic is that using the tag without the 'as' breakpoint, uses the backwards compatible logic that will raise a Page.DoesNotExist exception when the page cannot be found AND when settings.DEBUG=True.

Using the tag with the 'as' breakpoint will always suppress the Page.DoesNotExist exception regardless of the settings.DEBUG value.

Also, to do this cleanly, Ojii has updated django-classy-tags to expose an overridable get_value_for_context() method on AsTag. This bumps up the version required to 0.5 for django-cms.  setup.py and test-requirements/* have been updated to reflect this.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Fix test requirements =/

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Updated page_url tag to follow design decision

The agreed upon logic is that using the tag without the 'as' breakpoint, uses the backwards compatible logic that will raise a Page.DoesNotExist exception when the page cannot be found AND when settings.DEBUG=True.

Using the tag with the 'as' breakpoint will always suppress the Page.DoesNotExist exception regardless of the settings.DEBUG value.

Also, to do this cleanly, Ojii has updated django-classy-tags to expose an overridable get_value_for_context() method on AsTag. This bumps up the version required to 0.5 for django-cms.  setup.py and test-requirements/* have been updated to reflect this.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Fix test requirements =/

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Merge branch 'page_url_as_tag' of https://github.com/mkoistinen/django-cms into page_url_as_tag
Use SettingsOverride(…)

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Remove unused imports

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Update page_url_as_tag to reflect design decision.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Merge branch 'page_url_as_tag' of https://github.com/mkoistinen/django-cms into page_url_as_tag
Use assertRaises instead of try/except block

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Merge pull request #2768 from mkoistinen/page_url_as_tag

Updated page_url tag to follow design decision