Here are two apps called auth_app and blog. In blog app i have implemented signup/login/logout mechnism with simple table and class based views.
In auth_app i have implemented login/logout/register mechanism with auth.User table...And i have also modified this table. So this code will be useful in future.