SYNHAK / spiff

Spaceman Spiff Manages Spaces
GNU Affero General Public License v3.0
13 stars 5 forks source link

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

Open octaflop opened 11 years ago

octaflop commented 11 years ago

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