Type "which python" at the command line as your regular user. Then, look at /usr/bin/python*, /usr/lib, /usr/local/bin/python* and /usr/local/lib. Find where the site-packages for Django are located. Make sure that "which python" is pointing to the correct version.
Sounds like Django is not installed in the same version of Python that you are actually using. Also, if you type python -V (I think it's a capital "V") at the command line, it should tell you which version you are using. On Thu, May 6, 2010 at 3:47 AM, HelloWorld <zuckerp...@gmail.com> wrote: > Hi everybody > > I just got Django installed (to test it) via Macports and I have > Python 2.5 and 2.6 installed on a MacBook running 10.6.3. > > I did everything the installation guide told me, but after typing: > > python manage.py runserver > > I get this error: > > File "manage.py", line 2, in <module> > from django.core.management import execute_manager > ImportError: No module named django.core.management > > I believe the solution would be this comment on the installation > site: > > To avoid a command not found issue with Snow Leopard 10.6.2 and > various other OSX (Django installed using MacPorts?) here a tip that > might help. There might be a $PATH issue. Adding the proper PATH to > ~/.Profile: export PATH=/opt/local/bin:opt/local/sbin:/opt/local/lib/ > python2.4/site-packages/django/bin:$PATH should help. NB Could be that > one needs to change the Python version in the PATH. > > But I dont now what a $PATH issue is and where I could paste this code > to fix it. > > Or if you know another possible reason please tell me. > > Any help would be greatly appreciated. > > Thanks a lot > > Best > > Z. > > -- > 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<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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.