Hi Tameen,
my aproach for a new app is:
the first migration if your app is named "author"
python manage.py schemamigration author --initial
python manage.py migrate author
for every change later on, you need:
python manage.py schemamigration author --auto
python manage.py migrate author
Hope this helps.
Christian
Am Freitag, 4. April 2014 15:31:25 UTC+2 schrieb Tameen Malik:
>
> My model was
>
> class Author(Page):
> dob = models.DateField("Date of birth")
>
> i removed dob field and updated model with:
>
> class Author(Page):
> name = models.CharField(max_length = 250)
> email = models.EmailField()
>
>
> Then entered two commands:
>
> python manage.py schemamigration project_name 001_initial--add-field
> Author.name, Author.email
>
> then this command
>
> python manage.py migrate project_name
>
> you can see attach image : these above commands don't allow me to save
> changes in models.
>
> Need your assistance!
>
>
--
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.