first draft of a redirect view
display 404 with all tried url patterns
p3k exception handling
Convert page_url to an AsTag

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
fixes #2732
Switched to version from https://github.com/okfn/foundation, also added a test.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
better url resolver
Update documentation for page_url accordingly.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
fallback on match with $
More accurate documentation

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
fix tests
Merge branch 'develop' of github.com:divio/django-cms into fixes/2714
Return empty string on lookup failures when used as AsTag, also, test this.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Return '' when var_name is supplied, but set the value to None as appropriate.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Updated test

In this test, we use template logic to emit 'DNE' if the page is not found and the AsTag returned None.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
removed django trunk from testing
Implementation refactored for render_tag as per @ojii

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Remove render_tag() block, return ''

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>
Merge pull request #2755 from digi604/fix-404

display 404 with all tried url patterns
Remove commented out code (oops)

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