Django CMS malfunction: Site matching query does not exist
Posted
by culebrón
on Stack Overflow
See other posts from Stack Overflow
or by culebrón
Published on 2010-04-20T11:27:27Z
Indexed on
2010/04/20
11:43 UTC
Read the original article
Hit count: 755
I've installed all apps in a project, then added a site in the sites section, and deleted example.com. Now Pages section in Django CMS 2.0 isn't working: it raises a DoesNotExist exception: Site matching query does not exist.
at http://127.0.0.1:8000/admin/cms/page/
The section worked normally before I deleted the example.com site.
In settings.py I have SITE_ID = 2
line. Still, in this call:
return Site.objects.get(pk=site_pk)
in traceback, site_pk=1.
How can I fix this?
© Stack Overflow or respective owner