TemplateSyntaxError at /products/Product/263/
Variables and attributes may not begin with underscores:
'object._meta'

Request Method: GET
Request URL:    http://127.0.0.1:8000/products/Product/263/
Django Version: 1.3 pre-alpha
Exception Type: TemplateSyntaxError
Exception Value:
Variables and attributes may not begin with underscores:
'object._meta'
...

On Aug 5, 7:15 pm, Paulo Almeida <igcbioinformat...@gmail.com> wrote:
> But _meta starts with an underscore, so you can't use it in the template,
> right? I'm still using Django 1.0.2, so I don't know if that has changed
> along the way.
>
> - Paulo
>
> On Thu, Aug 5, 2010 at 8:52 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:
>
>
>
> > On Aug 4, 7:27 pm, "David.D" <dengyuanzh...@gmail.com> wrote:
> > > I just wonder if there's some way requires writing nothing. Just like
> > > an attribute.
>
> > > thanks.
>
> > Yes, there is. Each model and model instance object has a _meta
> > attribute, which contains information about the model -
> > the .app_label, object_name and .verbose_name will probably be useful
> > to you.
> > --
> > DR.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@google 
> > groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to