Hi Daniel > This is why it's a bad idea to do from x import *. You should always > import the things you need explicitly, then you can tell what's going > wrong. Try doing > from schoolutil.lesson.models import Lesson > and see if it still goes wrong - or if you get a more informative > error message.
Thanks for your tip. I've done this, now I'm getting the following error when I try to start the built-in development server: [EMAIL PROTECTED]:~/work/schoolutil$ python manage.py runserver Validating models... could not import in lesson.models Unhandled exception in thread started by <function inner_run at 0x856c064> Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/management/ commands/runserver.py", line 48, in inner_run self.validate(display_num_errors=True) File "/usr/lib/python2.5/site-packages/django/core/management/ base.py", line 122, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.5/site-packages/django/core/management/ validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 128, in get_app_errors self._populate() File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 57, in _populate self.load_app(app_name, True) File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 72, in load_app mod = __import__(app_name, {}, {}, ['models']) File "/home/daniel/work/schoolutils/../schoolutils/student/ models.py", line 3, in <module> from schoolutils.lesson.models import Lesson File "/home/daniel/work/schoolutils/lesson/models.py", line 7, in <module> class Lesson(models.Model): File "/home/daniel/work/schoolutils/lesson/models.py", line 8, in Lesson student = models.ForeignKey(Student) NameError: name 'Student' is not defined --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---