Hello, I'm working on a theme (specifically models for the custom home 
page) and running into an issue. I think I'm having a migration problem but 
I'm not sure. I updated my model, and when I run makemigrations I get "No 
changes detected". When I run migrate I get "No migrations to apply". 
Testing in the browser, with the edited model, gives this error: 
Operational Error at /. The exception value is *no such column: 
themename_homepage.paragraph_heading*

I wrote this code initially, ran makemigrations and migrate and it works:
from django.db import models
from django.utils.translation import ugettext_lazy as _

#Create your models here.
from mezzanine.core.fields import RichTextField
from mezzanine.core.models import RichText
from mezzanine.pages.models import Page


class HomePage(Page, RichText):

paragraph_blurb = models.CharField(max_length = 600, help_text = 'Paragraph 
under the heading', default = 'This is a test. I am a robot. Please write 
up to 600 characters here.')

class Meta:
verbose_name = _('Home Page')
verbose_name_plural = _('Home Pages')

But when I add this to the HomePage class:
paragraph_heading = models.CharField(max_length = 60, help_text = 'Heading 
under the slide show.', default = 'Write a heading.')
which is meant to be a simple heading, I get the errors as explained above 
after trying to do migrations again. Any ideas what I could be doing wrong? 
And what can I look at to test? By the way I'm using the default server on 
my local machine, and SQLite. Thanks!

-- 
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