I have an application named "projects", with a models.py defining both
FVProject and Finance classes.  But for some reason, my views.py in
the same folder throws a "global name 'FVProject' is not defined"
error when trying to import either class!

The following is at the top of my views.py:
from mysite.projects.models import FVProject, Finance

Am I running into some issue because my application is named
"projects"?  Is it a reserved word for Django?  It seemed like it had
been importing fine until I changed a few (unrelated) things around.

Any help would be appreciated!  A pictorial representation is shown
below, if it helps at all :)


mysite/
    projects/
        __init__.py
        models.py (below)
        urls.py
        views.py (below)


-------models.py--------------------------
class FVProject(models.Model):
   attr1 = models......

class Finance(models.Model):
   attr1 = models......
------------------------------------------------


--------views.py----------------------------
from mysite.projects.models import FVProject, Finance  (***NameError
thrown)
-------------------------------------------------



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to