Re: NameError Exception
Allright, i'm confused. I'm a noob. Thanks a lot.
Re: NameError Exception
On Mon, Aug 29, 2005 at 09:45:33AM -0700, Sebastien Fievet wrote: > > Complete python interpreter code : > >>> from django.models.mobilespecs import devices > >>> d = mobilespecs.Device('generic', 'root', '', False) > Traceback (most recent call last): > File "", line 1, in ? > NameError: name 'mobilespecs' is not defined try >>> d = devices.Device(a='generic', b='root', c='', d=False) where a,b,c,d are the field names --B
NameError Exception
Hi all, I'm just stating with Django and it's API (and Python too). Thanks to all developers to this Framework. I'm trying to make my own application (on Debian system). So, I've read the documentation, and made all symbolic links than needed and set my environment variables. I've created my model, installed my application and prepared to play with the API. But, in the python shell, when i want to create an object, this error is raised "NameError : name 'mobilespecs' is not defined" Complete python interpreter code : >>> from django.models.mobilespecs import devices >>> d = mobilespecs.Device('generic', 'root', '', False) Traceback (most recent call last): File "", line 1, in ? NameError: name 'mobilespecs' is not defined So, my question is : Where i'm wrong ? Thanks.