Hi,

I went through the first part of the tutorial without problems, but
when trying to turn on the admin app in tutorial 2, I got this error
page with the message stated in subject line.

Here's more info:

Django: latest version from the trunk
Python: 2.6.1
OS: OSX 10.6.7

Here's the info it gives me:

DoesNotExist at /admin/
Site matching query does not exist.


Traceback:
File "/Users/nightition/Development/django-trunk/django/core/handlers/
base.py" in get_response
  111.                         response = callback(request,
*callback_args, **callback_kwargs)
File "/Users/nightition/Development/django-trunk/django/contrib/admin/
sites.py" in wrapper
  213.                 return self.admin_view(view, cacheable)(*args,
**kwargs)
File "/Users/nightition/Development/django-trunk/django/utils/
decorators.py" in _wrapped_view
  91.                     response = view_func(request, *args,
**kwargs)
File "/Users/nightition/Development/django-trunk/django/views/
decorators/cache.py" in _wrapped_view_func
  77.         response = view_func(request, *args, **kwargs)
File "/Users/nightition/Development/django-trunk/django/contrib/admin/
sites.py" in inner
  195.                 return self.login(request)
File "/Users/nightition/Development/django-trunk/django/views/
decorators/cache.py" in _wrapped_view_func
  77.         response = view_func(request, *args, **kwargs)
File "/Users/nightition/Development/django-trunk/django/contrib/admin/
sites.py" in login
  330.         return login(request, **defaults)
File "/Users/nightition/Development/django-trunk/django/utils/
decorators.py" in _wrapped_view
  91.                     response = view_func(request, *args,
**kwargs)
File "/Users/nightition/Development/django-trunk/django/views/
decorators/cache.py" in _wrapped_view_func
  77.         response = view_func(request, *args, **kwargs)
File "/Users/nightition/Development/django-trunk/django/contrib/auth/
views.py" in login
  58.     current_site = get_current_site(request)
File "/Users/nightition/Development/django-trunk/django/contrib/sites/
models.py" in get_current_site
  92.         current_site = Site.objects.get_current()
File "/Users/nightition/Development/django-trunk/django/contrib/sites/
models.py" in get_current
  25.             current_site = self.get(pk=sid)
File "/Users/nightition/Development/django-trunk/django/db/models/
manager.py" in get
  132.         return self.get_query_set().get(*args, **kwargs)
File "/Users/nightition/Development/django-trunk/django/db/models/
query.py" in get
  349.                     % self.model._meta.object_name)


Does anyone have an idea of what I'm doing wrong?

Needless to say, these are my first steps with Django and I don't
really have an idea where to go from here - I've searched google, the
list.. no luck.

Thanks,
Ivan

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to