-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect add fails #6
Comments
Do you have django.contrib.sites in INSTALLED_APPS? |
INSTALLED_APPS = ( |
Maybe try a python manage.py syncdb before the migrate. Seems like for whatever reason the site table isn't being created. If that doesn't work you might just try to include the project directly from the master branch here on github. We haven't pushed up to pypi in a bit. |
Ok. I will try both ways. |
Had the same error message with a different application. It turned out, I had created django_sites at an earlier point in time, and it was MyISAM but needed to be InnoDB. Changing it fixed the error. |
Hi! I have a little problem with cms-redirect.
Installed cms-redirects from pip, added in INSTALLED_APPS, done manage.py migrate, but now getting strange error, while trying to add new redirect:
(1452, 'Cannot add or update a child row: a foreign key constraint fails (
appname
.cms_redirects_cmsredirect
, CONSTRAINTsite_id_refs_id_59d206086c6310a1
FOREIGN KEY (site_id
) REFERENCESdjango_site
(id
))')The text was updated successfully, but these errors were encountered: