Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » @property: 'Property' is not defined / what am I missing? [RSS Feed]

#1 Dec. 28, 2010 00:32:46

Malte B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

@property: 'Property' is not defined / what am I missing?


Hi all!

Noob issue: Trying to get the @property decorator to work. Django complains
"NameError: name 'Property' is not defined". What is it that I am failing to
import and or define? And should I have found out about it?

Thankful for pointers! /aub

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 28, 2010 00:59:43

Karen T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

@property: 'Property' is not defined / what am I missing?


On Mon, Dec 27, 2010 at 7:30 PM, Malte Beckmann <
monolithca...@googlemail.com> wrote:

> Hi all!
>
> Noob issue: Trying to get the @property decorator to work. Django complains
> "NameError: name 'Property' is not defined". What is it that I am failing to
> import and or define? And should I have found out about it?
>

Looks like you coded @Property, not @property. Python is case-sensitive so
the uppercase P for property won't work.

Karen
--http://tracey.org/kmt/--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 28, 2010 09:30:19

A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

@property: 'Property' is not defined / what am I missing?


Hi Karen,

That was it! Very educational :) Thank you

On Dec 28, 1:59 am, Karen Tracey <kmtra...@gmail.com> wrote:
> On Mon, Dec 27, 2010 at 7:30 PM, Malte Beckmann <
>
> monolithca...@googlemail.com> wrote:
> > Hi all!
>
> > Noob issue: Trying to get the @property decorator to work. Django complains
> > "NameError: name 'Property' is not defined". What is it that I am failing to
> > import and or define? And should I have found out about it?
>
> Looks like you coded @Property, not @property. Python is case-sensitive so
> the uppercase P for property won't work.
>
> Karen
> --http://tracey.org/kmt/--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » @property: 'Property' is not defined / what am I missing? [RSS Feed]

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support