Friday, October 28, 2011

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

I'd give PostgreSQL a shot and see if it magically works for you. It's an awesome database. If you have any problems with it though, here's the "easy way out" I took. I just installed Mac Ports and never had another problem. Of course, you'll have to make sure you're using the Mac Ports tools you install (Python, easy_install/pip) and not the ones that come with OSX. More information here:


Some of the packages you'll need include Python, setup tools, and the MySQL-python connector. Let me know if you decide to go this route and I'll be happy to help you along the way! There's also lots of good info that can be found with google.

Good luck!

On Fri, Oct 28, 2011 at 5:47 AM, Andre Terra <andreterra@gmail.com> wrote:
PostgreSQL is great, you will have no regrets!


Cheers,
AT


On Fri, Oct 28, 2011 at 6:13 AM, angelika <angelika.olsson@gmail.com> wrote:
Thank you all for your help and suggestions. Last time I installed
Django it took a full two days and I was nearly in tears at the end.
Most of the time was spend trying to solve the problems that Kurtis is
talking about, with the MySQLdb package. Although I am usually not a
person who takes shortcuts, this time I'm really looking for the
easiest way to just get the darn thing to work.

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. 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.

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?

/Angelika

On Oct 27, 6:12 pm, Andre Terra <andrete...@gmail.com> wrote:
> IMHO, If you can't understand how imports and sys.path work, it's best to
> put the Django book aside and read up on the basics of installing and
> running Python.
>
> Cheers,
> AT
>
>
>
>
>
>
>
> On Thu, Oct 27, 2011 at 1:55 PM, creecode <creec...@gmail.com> wrote:
> > Angelika may not want to get into virtualenv and virtualenvwrapper at this
> > point.  If you're just getting into Python/Django it may be more overhead
> > than you want to deal with conceptually at this time.  If your project is
> > simple or you're just learning then you may want to wait until you feel the
> > need for these tools.
>
> > Don't get me wrong these tools are fantastic and I use them myself!
>
> > Toodle-loooooooooo..........
> > 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/-/uzKtIhXl5qMJ.
>
> > 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.

--
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 django-users+unsubscribe@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-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.

--
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 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