Re: [mezzanine-users] Can't get mezzanine to render template with real time database entries

2016-03-28 Thread Eduardo Rivas
Where's the menssagens variable coming from? A view? Page processor? 
Middleware? Does it correspond to model objects in your database, a 
setting, a list created on the fly?


--
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Can't get mezzanine to render template with real time database entries

2016-03-28 Thread Bernardo Tavares
Hello guys,
I'm pulling my hair out trying to solve this issue and couldn't find any 
solution on the internet or docs.

I have the following code in my template:

{% nevercache %}
{% if menssagens %}
  {% for menssagem in menssagens %}
  
  {{ menssagem.menssagem }}

;
  
  {% endfor %}
{% endif %}
{% endnevercache %}

The problem is when i change a database entry the changes are not rendered 
to the html. I have to restart the server to update the changes. I thought 
the problem was with mezzanine's caching engine. I have tried using 
mezzanine.conf.Settings clear_cache() method and changing 
CACHE_SET_DELAY_SECONDS without success.

How can I update my html in real time like a page or blog entry?

Any help would be greatly appreciated!

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.