Closed electroniceagle closed 12 years ago
That's my bad, i took out the login user panel from the sample. I usually just login by going to /admin. I will put it back. Regarding the Add url not being on the page (i'm assuming that you are on the homepage). For now, you can only add widgets on regular mezzanine pages this is because widgets are attached to pages on the model level (Foreign Key). I put a little note last night, sorry if you missed that
i should probably do a better example app, i just freed some time so i'm going to workon this app this weekend
That's cool. I was having one of those coding days where everything I did made things worse. In my own template, the add button appears but the link is just a # to the same page. Will debug some more. I think 1.0.10 mezz is new, but I decided to look at it fresh this weekend.
Sent from my iPhone
On May 18, 2012, at 7:52 PM, Osiloke Harold Emoekperereply@reply.github.com wrote:
i should probably do a better example app, i just freed some time so i'm going to workon this app this weekend
Reply to this email directly or view it on GitHub: https://github.com/osiloke/mezzanine_widgets/issues/2#issuecomment-5798035
Yeah, so it's more or less that the widget.js file is not loaded, which means the template you are trying to use does not have {% widget_loader %} tag in place. I usually put it in the base template so you might want to do the following:
This will put all templates from mezzanine into a folder, templates. The base.html template should be in there. Just place {% widget_loader %} after your jquery.js declaration. You can also just put it in the footer_scripts.html template and delete all other templates.
It was a bug in my base.html. Thanks for your help debugging.
This could be me, but I'm unable to get the example to work with a fresh virtualenv. The widget function appears, the configure button appears, but the add widget button is not visible. The login user panel is also missing.