Fixed #19299 -- Fixed Nullification of Foreign Keys To CharFields

Thanks tunixman for the report and Baptiste Mispelon and
Shai Berger for reviews.
Fixed #18373 - improved handling of Resolver404s from views

When django.core.urlresolvers.resolve was called from a view, failed
and the exception was propagated and rendered by technical_404_response,
the URL mentioned on the page was the current URL instead of the URL
passed to resolve().

Fixed by using the path attribute from the Resolver404 exception instead
of request.path_info. Also cleaned up the exceptions to use standard
named parameters instead of stuffing a dict in args[0]
Fixed #21884 -- Mentioned that exact is the defaut QuerySet lookup type

Thanks to cjerdonek for the suggestion.
Fixed #21765 -- Added support for comparing Context instances
Fixed #21912 -- Improved error message if a view returns None.

Thanks brycenesbitt for the report.
Fixed some flake8 errors from recent commits.
Fixed #22047 -- detecting related_name clash with inheritance

Thanks to mondone for fruitful colaboration.
Improved fix for #18373 -- backward compatibility

Commit 79558c78 cleaned up the (undocumented) interface of Resolver404
exception, which breaks compatibility with code messing with .args[0]
directly. Revert the cleanup part and simply leave the fix itself.
Fixed #22013 -- Documented difference between SERVER_EMAIL and DEFAULT_FROM_EMAIL.
Fixed #21725 -- Fixed JavaScript quoting encoding.

Thanks to nedbatchelder for the report.
Corrected a pair of flake8 violations
Fixed #22002 -- Documented avoiding database interaction in AppConfig.ready().

Thanks Marc Tamlyn for the suggestion.
Split line and added indentation for better readability.
Fixed bad comparison logic introduced in d97bf2e9c8971764690caaf81a0914bc368d6b02.

Refs #21765.

Thanks to kezabelle for the quick report and to onjin
for providing the patch.
Fixed #18745 - Documentation change explaining tuple to list with signing.

Thanks to lee for the report.
Fixed #21939 -- Deprecated loading ssi/url tags from future.
Fixed two typos in documentation
Added some links in i18n documentation
Made the new template.Context.flatten() method a public API.

That method was introduced in 9db4271bd11ac23a5a5652bbcdf8fb6d4b997651.

Refs #21765.
Big merge