Set pinning cookie if view is in MULTIDB_PINNING_VIEWS

The pinning cookie should be set not only if the request is POST, but
also if it is in MULTIDB_PINNING_VIEWS.
Update requirements.txt to use Django 1.4