willhardy / django-seo

Provides a set of tools for managing Search Engine Optimisation (SEO) for Django sites.
BSD 3-Clause "New" or "Revised" License
251 stars 117 forks source link

Work around to get working with South Migrations #28

Closed jessexoc closed 12 years ago

jessexoc commented 12 years ago

./manage.py syncbd will fail for fresh DB syncs if a model is using seo & the model's schema is being managed by south migrations. This is because the model's DB table will not be created by the syncdb command (but rather a subsequent ./manage.py migrate command).

TODO: South emits it's own signals (http://south.aeracode.org/docs/signals.html#post-migrate) & the management could hook into these also.

willhardy commented 12 years ago

Thanks for the pull request, Jesse.

funkybob commented 12 years ago

That really ought be wrapped in a transaction... it was preventing tests for us for ages until I wrapped it in a commit-manually block.