Django Traceback

39 views
Skip to first unread message

snaggz03

unread,
Feb 24, 2009, 5:46:45 PM2/24/09
to ShowMeDo-Learners
Hi, I am trying to use Django to create a Recipe database on a virtual
host. When I try to access the shell (in Putty with command python
manage.py shell) I get the following traceback. Clearly I need to
debug but where? Also I do not have root access to the server. Is
this an issue with my python setup (incompatibility perhaps) or will
fixing the issues in my models.py file fix the python issues as well?
Any help is greatly appreciated.

joseph@atrinsic5: /mysite$ python manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at
0x7fdb5376a500>
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_error(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/joseph/mysite/../mysite/recipes/models.py", line 8, in
<module>
class Recipes(models.Model):
File "/home/joseph/mysite/../mysite/recipes/models.py", line 18, in
Recipes
favorites = models.ManytoManyField(User)
AttributeError: 'module' object has no attribute 'ManytoManyField'
Reply all
Reply to author
Forward
0 new messages