Hi.
You really dont give much information, when this
happens traceback ect, but a wild guess would
be to check your imports.

~Jakob

On Mar 30, 7:04 pm, Adonis <achrysoch...@hotmail.com> wrote:
> Hello,
> You will love this one,
>
> models.py
> *
> class LayersOfUsers(models.Model):
>     name = models.CharField(max_length=50)
>     desc = models.TextField(null=True)
>     geouser = models.ForeignKey(User)
>
>     def __unicode__(self):
>         return self.name
>
> class Species_d(models.Model):
>     speciesName = models.CharField(max_length=200, null=True)
>     speciesUser = models.ForeignKey(User)
>     lon = models.FloatField(4)
>     lat = models.FloatField(4)
>     uLayer = models.ForeignKey(LayersOfUsers)
>
>     def __unicode__(self):
>         return self.speciesName
> *
>
> i am getting a name error on this occasion:
> * NameError: name 'LayersOfUsers' is not defined *
> Anyone care to suggest sth? I will also add a hint, because the
> initially created project is now running under mod python, this
> happens to be a newly created project but with copied-paisted code
> from the previous one, so that i can continue developing.
> Kind regards,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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