Consistently indent comments in project template

Makes this file slightly more pep8 compliant.
Update django/contrib/flatpages/forms.py

Translate before passing in the variables (i.e. close the bracket earlier).
If you translate after passing in the variables the translated value will contain the actual values for 'url' and 'site' and will therefore not be translated.

(I'm not actually using django's flatpages, but I ran into this apparent error when doing a global grep on my own project)
Fixed #19355 -- Improved LiveServerThread's handling of exceptions. Thanks to flub for the report.
Changed (again) technique to get version IDs shown in docs from source code.

Hopefully it will fix the problem with the documentation building server
that caused a wrong Django version to be reported in the HTML zipball
docs edition.

Follow-up to commits 373df56 and 0b98ef6.
Fixed #18417 -- Raised exception when unittest.TestCase is decorated with override_settings
Enabled SimpleTestCase to be decorated by override_settings

Refs #18417. Also fixed some test case classes which subclassed
the wrong parent.
Fixed two typos.
Change exception type to reduce confusion.

TemplateSyntaxError is expected at compile time, not at run time.

Refs #19280.
Fixed test failure following capitalization fix in 2f035a972
Fixed #17646 -- Added a get_list_filter() method to ModelAdmin. Thanks to rasca for the suggestion and to mateusgondim for the patch.
Merge pull request #518 from vanschelven/patch-1

Fixed interpolation in a translated string.

Refs #14678.
Merge pull request #476 from wraithan/patch-1

Indented comments consistently in project template
Fixed #17911 -- Ensure that admin readonly fields' display values are shown in change forms when the raw value is None.
Fixed #19362 -- Detected invalid use of @python_2_unicode_compatible.

Thanks m3wolf for the report and akaariai for reproducing the problem.
Fixed #19274 -- Made db connection creation overridable in subclasses

Connection creation was done in db backend ._cursor() call. This
included taking a new connection if needed, initializing the session
state for the new connection and finally creating the connection.

To allow easier modifying of these steps in subclasses (for example to
support connection pools) the _cursor() now calls get_new_connection()
and init_connection_state() if there isn't an existing connection. This
was done for all non-gis core backends. In addition the parameters used
for taking a connection are now created by get_connection_params().

We should also do the same for gis backends and encourage 3rd party
backends to use the same pattern. The pattern is not enforced in code,
and as the backends are private API this will not be required by
documentation either.
Made sure global settings are changed in test db creation

There was an assumption that changing connection.settings_dict changed
also the settings.DATABASES values. This assumption is now gone.
Made some tests behave nicer re connection handling
Refactored gis/spatialite connection initialization

The connection state is now initialized in get_new_connection().
Refs #19274.
Removed duplicate opts.pk_index() method
Fixed #19370 -- Made date filter properly handle midnight value