TypeError at /accounts/login/ id must be an instance of (str, unicode, ObjectId), not <type 'int'>
问题 This is my first example code for mongodb I am trying to connect my django with mongodb . I did my registration part successfully, But when I am trying to log in its showing an error page. TypeError at /accounts/login/ id must be an instance of (str, unicode, ObjectId), not type 'int' I am using django user authentication, this is my url url(r'^accounts/login/', 'django.contrib.auth.views.login'), below is my full traceback, TypeError at /admin/profile/ id must be an instance of (str, unicode