[1.7.x] Reordered tutorial 1 so that the database is configured first.
[1.7.x] Reordered tutorial 1 so that the database is configured first.

This change is required after the introduction of
SessionAuthenticationMiddleware to the default middleware

Backport of 6923fdbbf1 from master

oscaro/django,oscaro/django,jyotsna1820/django,jyotsna1820/django,oscaro/django,jyotsna1820/django,jyotsna1820/django,oscaro/django