Hi there - I'm aware this is more of a Django issue, and have posted this
in the "Django users" group, but was hoping someone here might be able to
help.
I've been having some issues with my Mezzanine-powered site and have solved
all issues locally (including a fresh migration covering all additional
models). However, when I try to deploy the site to the server (WebFaction)
I'm given a NameError:
[81.95.157.172] out: File "vital_theme/admin.py", line 67, in <module>
[81.95.157.172] out: class
TuitionContentInline(StackedDynamicInlineAdmin):
[81.95.157.172] out: File "vital_theme/admin.py", line 68, in
TuitionContentInline
[81.95.157.172] out: model = TuitionContent
[81.95.157.172] out: NameError: name 'TuitionContent' is not defined
At present *admin.py* looks like:
***START***
from models import (...
Tuition, TuitionContactIconBox, TuitionContent,
...)
class TuitionContentInline(StackedDynamicInlineAdmin):
model = TuitionContent
***END***
...and* models.py* contains:
***START***
[...]
# Tutorial Page
class Tuition(Page):
heading = models.CharField(
max_length=200,
blank=True,
help_text="The heading at the top of the page")
subheading = models.CharField(
max_length=200, blank=True,
help_text="The subheading just below the heading")
blurb = models.TextField(
blank=True,
help_text="Text under the headings")
class Meta:
verbose_name = _("Tuition")
verbose_name_plural = _("Tuitions")
class TuitionContent(Orderable, RichText):
tuition = models.ForeignKey(Tuition, related_name="contents")
title = models.CharField("Title", max_length=50)
icon = models.CharField("Icon", max_length=50)
***END***
Can anyone think of any reasons that this isn't deploying correctly, though
is working fine locally? I may have missed important details so please let
me know if this is the case.
Thanks for your time,
Rich
--
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.