Login a user out works fine, but I can't get logging in working (0.95).
I keep getting 'Site matching query does not exist'. What I got:

urls.py:
------------
(r'^accounts/login/$', 'django.contrib.auth.views.login',
{'template_name': 'registration/login.html'}),
(r'^accounts/logout/$', 'django.contrib.auth.views.logout',
{'template_name': 'registration/logged_out.html'}),

views.py:
------------
@login_required
def homePage(request):
    return HttpResponse('authenticated')

registration/login.html
------------
Copied from here:
http://www.djangoproject.com/documentation/authentication/

================
EXCEPTION
================
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\core\handlers\base.py"
in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\auth\views.py"
in login
  28. return render_to_response(template_name, {
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\manager.py"
in get
  70. return self.get_query_set().get(*args, **kwargs)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\query.py"
in get
  213. 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.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to