#1423

Simple adjustment to also use settings.SECRET_KEY when set (using sha1)