replace @classmethod to @staticmethod, views.py add login_require.
move login and logout from views to views_auth, add TEMPLATE_CONTEXT_PROCESSORS in settings, all views and views_auth return changed. more modify in auth template.