Ok I added mezzanine_tags and it did remove the error. But now I'm
confused. If I delete the model I created, what do I call the editable
fields? I tried {% editable page.title %} for example. I'm not
understanding this part of the documentation...
>>>>>
The model field must always be specified in the format
instance_name.field_name where instance_name is the name of a model
instance in the template context. For example, suppose we had a page
variable in our template with title and content fields:
>>>>>
On Wednesday, October 29, 2014 10:20:01 AM UTC-7, Kenneth Bolton wrote:
>
> You don't need the model to do this.
>
> Just add 'mezzanine_tags' to the `loads` template tag on line 2 and you
> should be good to go.
>
> hth,
> ken
>
> On Wed, Oct 29, 2014 at 1:11 PM, T Kwn <[email protected] <javascript:>>
> wrote:
>
>> Hi all,
>> Trying to follow tutorials and such but just can't put 2 and 2
>> together. I did the following steps:
>>
>> 1) changed urls.py to:
>> url("^$", "mezzanine.pages.views.page", {"slug": "/"}, name="home"),
>> 2) copied index.html template into my local directory at
>> templates/pages/index.html. I know mezzanine found it because I changed
>> some content and I can see the edits.
>> 3) I have created a model
>>
>> https://gist.github.com/anonymous/bef897f79e5b18aa36d0
>>
>> 4) changed index.html to add {% editable ... %} and {% endeditable %} as
>> seen here:
>>
>> https://gist.github.com/anonymous/a3beb73d09477d791b8d
>>
>> At this point I get a complaint that {% editable %} shouldn't be inside
>> the {% block %} ?
>>
>> TemplateSyntaxError at /
>>
>> Invalid block tag: 'editable', expected 'endblock'
>>
>>
>> http://awesomescreenshot.com/0c93r0tt5d
>>
>> What am I missing?
>>
>> --
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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.