Hi, In Django version 0.97-pre, rev 5020, I'm adding additional views for end users, all decorated with @login_required.
I noticed if I'm not already logged in (by 1st visiting .../admin/), I get below error (reproduced in a python terminal, same problem as in a browser - [17/Apr/2007 10:22:43] "GET /accounts/login/?next=/GUI/ start/ HTTP/1.1" 500 51242 gives: DoesNotExist at /accounts/login/ Site matching query does not exist. Request Method: GET Request URL: http://localhost:8000/accounts/login/ Exception Type: DoesNotExist Exception Value: Site matching query does not exist. Exception Location: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/django/db/models/query.py in get, line 252 ). Removing the decorator and including or not 'django.contrib.sites' in INSTALLED_APPS seems to make no difference. Any hints what I'm doing wrong? I hadn't tested this for a while, but 2 months ago I'm sure this worked fine. Thanks, Rob >>> from django.conf import settings >>> settings.SITE_ID 1 >>> Site.objects.all() [<Site: example.com>] >>> Site.objects.get_current() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/contrib/sites/models.py", line 7, in get_current return self.get(pk=settings.SITE_ID) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/db/models/manager.py", line 73, in get return self.get_query_set().get(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/db/models/query.py", line 252, in get raise self.model.DoesNotExist, "%s matching query does not exist." % self.model._meta.object_name django.db.models.base.DoesNotExist: 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 django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---