hynekcer
The step:
>>> Site.objects.get_current().id
fails with the following traceback:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/sites/sitename/test/current/lib/python2.6/site-packages/
django/contrib/sites/models.py", line 22, in get_current
current_site = self.get(pk=sid)
File "/sites/sitename/test/current/lib/python2.6/site-packages/
django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/sites/sitename/test/current/lib/python2.6/site-packages/
django/db/models/query.py", line 341, in get
% self.model._meta.object_name)
DoesNotExist: Site matching query does not exist
On Jul 28, 7:19 pm, hynekcer <[email protected]> wrote:
> frjeremiah,
> verify that the site:port of the page with message "The product/
> category you have requested does not exist." is the same as site:port
> of previous admin page (http://..../admin/product/product/someid)
>
> Is your site domain:port correctly configured in "Sites" table? Is
> this site selected in admin in the field labeled "Site" on the
> Category/Product editing page? (the first field on page)
> (Maybe you have no default site or you deleted the original site an
> created a new one (different from the default "SITE_ID = 1" in
> settings.py) or you have two running instances of Satchmo listening on
> different IPaddress:port and with different configurations or
> different databases and the field "domain name" in table "Sites"
> points to a "domainname:port" belong to different satchmo instance.)
>
> Testing: go to the directory with your settings.py
> $ python manage.py shell>>> from django.contrib.sites.models import Site
> >>> from product.models import Category
> >>> Site.objects.get_current().id
> 1 # exactly 1
> >>> print Site.objects.get_current().domain
>
> yourtestcomputer.yourdomain.com # or localhost:8000 or something
> other what you should to try copy&paste to web browser>>>
> Category.objects.active().filter(site=Site.objects.get_current()).count()
>
> 3 # number of active categories on your site
>
> Which step fails?
>
> > I am currently setting up a test instance of Satchmo...
--
You received this message because you are subscribed to the Google Groups
"Satchmo 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/satchmo-users?hl=en.