On 12 sep, 13:01, jean polo <josiano....@googlemail.com> wrote: > > File "manage.py", line 11, in <module> > execute_manager(settings) > [SNIP] > from django.shortcuts import get_object_or_404, render_to_response > ImportError: No module named shortcuts
This usually happens when you have another module/package named django in your sys.path. So first make sure you don't have a file named "django.py" (or django.pyc !), or a directory named django with an __init__.py / .pyc in your source tree. br...@bibi ~/playground/foobar $ ls __init__.py manage.py sqlite.db urls.py __init__.pyc settings.py settings.pyc truc br...@bibi ~/playground/foobar $ ./manage.py shell Python 2.6.2 (r262, Aug 23 2009, 03:12:31) [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from truc.models import * Traceback (most recent call last): File "<console>", line 1, in <module> File "/home/bruno/playground/foobar/truc/models.py", line 1, in <module> from django.db import models ImportError: No module named db >>> br...@bibi ~/playground/foobar $ find -name "django*" ./truc/django.py ./truc/django.pyc br...@bibi ~/playground/foobar $ HTH -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.