Friday, October 28, 2011

Re: No module named django after upgrade to os x Lion

Hello Angelika,

On Friday, October 28, 2011 2:13:20 AM UTC-7, angelika wrote:

creecode, I tried the commands you suggested first. No matter which
version I switched to, it still said No module named django, which
seems weird but there it is.

If your curious about where the old Django install may have gotten to you could try on the command line...

sudo find -x / -name django -print

So I ran sudo easy_install django, just
to see if it could be that easy. When the install was done, it seemed
to work at first. I could run import django, no problem. I started the
tutorial on djangoproject.com and got as far as setting up a db and
running python manage.py runserver, before the dreaded
"django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
module: No module named MySQLdb" started showing up. God damn it.

If you are just doing local development for learning I think you can bypass the database install, at least that is what the Django Quick Install docs indicate.

At this point I thinking maybe I should just switch to using
PostgreSQL instead, if that would solve the problem. What do you guys
think?

You could give it a go but if you're just wanting to get through the tutorial is does seem like overkill.  I've just tried installing Postgres on Mac OS X for the first time and it wasn't smooth sailing by any means.  Part of the issues were related to installing the Postgres server on an older OS version and hardware.  I did install psycopg2 on recent hardware with current Lion and a fair amount of hair pulling.  psycopg2 is a connector so that Django, through Python, will be able to talk to a Postgres server.  It does the same job that MySQLdb does for MySQL.

Toodle-loooooooooooooo.............
creecode

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/efYSJuk-DIwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment