Skip to content
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

First syncdb will fail due to un-fullfilled contrib.sites dep #29

Open
octaflop opened this issue Feb 21, 2013 · 0 comments
Open

First syncdb will fail due to un-fullfilled contrib.sites dep #29

octaflop opened this issue Feb 21, 2013 · 0 comments

Comments

@octaflop
Copy link

I think I'll have a patch for this soon, but I thought I'd make you aware. The initial syncdb will fail a couple of times (even with the --migrate flag) unless you DON'T create a superuser right away. It will resolve itself if you run the command again, but then you'll run into another issue: contrib.sites hasn't been initialized for some reason. So I did this:

./manage.py shell

from django.contrib.sites.models import Site
new_site = Site.objects.create(domain='localhost:8000', name='localhost')
print new_site.id # '1'

And added SITE_ID=1 to the settings_local.py

I'm going to try to fix your bootstrapping issue with contrib.sites, but it's been a while since I wrote installation commands. I'll hopefully have a pull by Friday.

PS: I'm foenix on irc4.oftc.net/#vhs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant