I figured it out, for those wondering add the following line to the top of
your urls.py like this
from mezzanine.core.views import direct_to_template
from mezzanine.pages.views import page #<<<insert here >>>#
from mezzanine.conf import settings
and then go to the section "HOMEPAGE AS AN EDITABLE PAGE IN THE PAGE TREE",
remove the following line:
# url("^$", mezzanine.pages.views.page, {"slug": "/"}, name="home"),
and add this one
url("^$", page, {"slug": "/"}, name="home"),
Now your page is editable from the admin section of the site.
On Tuesday, August 23, 2016 at 3:36:18 PM UTC-4, Michael Ketiku wrote:
>
> In the url.py for mezzanine 4.2, above the urls for the blogpost as a
> homepage and an editable homepage there is the following note:
>
> # NOTE: Don't forget to import the view function too!
>
> My question is what view function is it referring to, where do I import it
> and why is this necessary? I have looked all over in the github repo, this
> google group and even in the documentation and this is not addressed in any
> way. Could someone please explain this to me,
>
> 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.