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

2016-03-28 Thread Eduardo Rivas
Glad you got it working! -- 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.

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

2016-03-28 Thread Bernardo Tavares
Eduardo Rivas, just saw your answer, thanks for the help. This happens sometimes to me, when I focus too much on the problem i can't see the anwer. I don't know much about page processors, I will study this! The solution i gave was a simple view: def index(request): menssagens = Menssagem.o

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

2016-03-28 Thread Bernardo Tavares
I figured it out, The problem was that the object was being requested from database on script import and not on the function call. I looked everywhere for the answer but it was right in front of me. Breaks are good for the mind. Thanks and sorry for the dumb question Em segunda-feira, 28 de ma

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

2016-03-28 Thread Eduardo Rivas
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 n

Re: [mezzanine-users] Adding templates to an existing project

2016-03-28 Thread Don Holloway
Stephen, Thanks, I had kind of gotten my head around to the idea that I needed to start with Cartridge, and add to it. I also know there is no real shortcut to reading the code. I'd like to then figure out some "cookie cutter" kind of automation to make some of the "plug-ins" a bit easier to

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

2016-03-28 Thread Bernardo Tavares
Sorry for not giving much detail, The object is being passed to direct_to_template view method: extra_context = {"menssagens": Menssagem.objects.filter(publicado=True)} url("^$", direct_to_template, {"template": "index.html", "extra_context": extra_context}, name="home"), I have also tried crea

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

[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 %} {% en

Re: [mezzanine-users] Re: Unable to deploy Mezzanine on Digital ocean.

2016-03-28 Thread Eduardo Rivas
Thanks Adam. I see you went with Digital Ocean's tutorials. Did you try the one in Mezzanine's docs? It should work with a completely blank Ubuntu VPS. http://mezzanine.jupo.org/docs/deployment.html#tutorial The fabfile should handle not only installing the Mezzanine project, but all system-l

Re: [mezzanine-users] Adding templates to an existing project

2016-03-28 Thread Stephen McDonald
On Tue, Mar 29, 2016 at 1:10 AM, Don Holloway wrote: > I can't tell whether you can install multiple templates upon initial > installation, or whether you can only install one, then have to add others > manually. It's the latter - I'd start by creating a Cartridge project, and then using a diff

[mezzanine-users] Adding templates to an existing project

2016-03-28 Thread Don Holloway
Hi everyone, I'm trying to add multiple 3rd party app to an existing project. Let's say that I want to use both Drum and Cartridge on the same project. I've read through the documentation, mailing list, and blog posts, and am still confused. Most of what I've seen about adding a new templa

[mezzanine-users] Mezzanine CMS User Guide .pdf

2016-03-28 Thread Don Holloway
Thank you. I'm trying to get my head around some basic structure. I hope to document what I learn for the community. -- 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

[mezzanine-users] Settings no loading

2016-03-28 Thread Tomas Chmelevskij
Hello, I'm trying to make cartridge work with paypal ipn by following this tutorial which some of you may know. Thing is I managed to make it work on my server but when I try to use it on local machine