Hi Keith,

Your schemamigration is for the app "blog", but then you are attempting to
migrate the app "theme". Let us know if that was simply a transcription
error or the root cause of your issue.

hth,
ken

On Sat, Apr 18, 2015 at 2:48 AM, Keith Eberle <[email protected]>
wrote:

> I'm having trouble with a subsequent schema migration after I used
> EXTRA_MODEL_FIELDS:
>
> EXTRA_MODEL_FIELDS = (
>     (
>         "mezzanine.blog.models.BlogPost.gallery",
>         "ForeignKey",
>         ("galleries.Gallery",),
>         {'blank': True, 'null': True},
>     ),
> )
>
>
> Then as indicated in the mezzanine docs, I ran:
>
> $ python manage.py schemamigration blog --auto --stdout >>
> theme/migrations/0016_blog_customization.py
>
>
> And then:
>
>      $ python manage.py migrate theme
>
>
> I quickly glanced at this caveat, but wasn't really sure what it would
> mean:
>
> *Be warned that over time this approach will almost certainly require some
> manual intervention by way of editing migrations, or modifying the database
> manually to create the correct state. Ultimately there is a trade-off
> involved here.*
>
>
> So I made a different change to a model, which was just adding a
> BooleanField.  When I try the schema migration now I get:
>
> $ python manage.py schemamigration theme --auto
> You cannot use automatic detection, since the previous migration does not
> have this whole app frozen.
> Either make migrations using '--freeze theme' or set
> 'SOUTH_AUTO_FREEZE_APP = True' in your settings.py.
>
>
> I've tried to review the docs for the --freeze option, but I'm just not
> understanding what to do.  Example:
>
> python manage.py schemamigration --freeze theme --empty --auto
> You must provide an app to create a migration for.
>
>
> Can someone guide me in the right direction?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to