Alright, so urls.py is loaded when the server is started. It means that
the extra_context variable stores the Menssagem objects that are
published at that time. The value is not updated on every request, which
means that the published objects are never re-fetched. This is why you
only get the new objects after a server restart.
My advice is that you create a very thin view, either function or
class-based, to make sure your logic is executed on every request, not
only on server load. Another option is to create a page processor for
"/", injecting the context you want.
http://mezzanine.jupo.org/docs/content-architecture.html#page-processors.
Hope that helps :)
--
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.