oh sorry , this maybe because I use db_dump.py load the data . 在 07-9-25,张沈鹏(电子科大08年本科应届)<[EMAIL PROTECTED]> 写道: > in urls.py > ################################################# > from django.contrib.auth.views import login, logout > ........... > (r'^accounts/login/$',login) , > .......... > ################################################# > > when your input a not exist username this will report error > > it seems caused by below django.contrib.auth.views codes > > if Site._meta.installed: > current_site = Site.objects.get_current() > > ################################################# > Traceback (most recent call last): > File > "D:\myWay\stuhome_django\sdk\python\Lib\site-packages\django\core\handlers\base.py" > in _real_get_response > 81. response = callback(request, *callback_args, **callback_kwargs) > File > "D:\myWay\stuhome_django\sdk\python\Lib\site-packages\django\contrib\auth\views.py" > in login > 32. current_site = Site.objects.get_current() > File > "D:\myWay\stuhome_django\sdk\python\Lib\site-packages\django\contrib\sites\models.py" > in get_current > 23. current_site = self.get(pk=sid) > File > "D:\myWay\stuhome_django\sdk\python\Lib\site-packages\django\db\models\manager.py" > in get > 69. return self.get_query_set().get(*args, **kwargs) > File > "D:\myWay\stuhome_django\sdk\python\Lib\site-packages\django\db\models\query.py" > in get > 263. raise self.model.DoesNotExist, "%s matching query does not > exist." % self.model._meta.object_name > > DoesNotExist at /accounts/login/ > Site matching query does not exist. > > > -- > > > 博客:http://zsp.javaeye.com/ > 专业:生物医学工程+计算机科学与技术 > 技能:C++(STL,BOOST) Python(Django) HTML+CSS AJAX > -- 张沈鹏 > > > -- > > > 博客:http://zsp.javaeye.com/ > 专业:生物医学工程+计算机科学与技术 > 技能:C++(STL,BOOST) Python(Django) HTML+CSS AJAX > -- 张沈鹏 >
-- 博客:http://zsp.javaeye.com/ 专业:生物医学工程+计算机科学与技术 技能:C++(STL,BOOST) Python(Django) HTML+CSS AJAX -- 张沈鹏 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---