Okay, figured this one out, too. If anyone comes across the same
problem, read this: 
http://2tbsp.com/content/install_and_configure_mysql_5_macports

On Dec 1, 4:47 pm, Dave <davea...@gmail.com> wrote:
> Okay, I figured out this problem by editing my PYTHONPATH in
> my .bash_profile, but now I have another problem. When I try and run
> "python manage.py syncdb" I get this error: "Can't connect to local
> MySQL server through socket '/opt/local/var/run/mysql5/
> mysqld.sock' (2)"
>
> Mysql is running; I have the little tool in system preferences that
> says it's running. The file mysqld.sock doesn't exist, though. The /
> run/ directory doesn't even exist. Any MySQL gurus out there know how
> to fix this?
>
> On Nov 30, 10:02 pm, Dave <davea...@gmail.com> wrote:
>
>
>
> > Hi all,
>
> > I created a django project and when I try to start the server I get
> > this:
>
> > Traceback (most recent call last):
> >   File "manage.py", line 2, in <module>
> >     from django.core.management import execute_manager
> > ImportError: No module named django.core.management
>
> > I did some Googling and I think it's because I got an error when
> > trying to create a symlink in the installation instructions:
>
> > "Next, make sure that the Python interpreter can load Django's code.
> > There are various ways of accomplishing this. One of the most
> > convenient, on Linux, Mac OSX or other Unix-like systems, is to use a
> > symbolic link:
>
> > ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django"
>
> > I changed SITE-PACKAGES-DIR to my directory and got this error:
>
> > $ ln -s `pwd`/django-trunk/django /Library/Frameworks/Python.framework/
> > Versions/2.6/lib/python2.6/site-packages/django
> > ln: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
> > site-packages/django: File exists
>
> > I'm not sure what it means by "file exists". The other option was
> > changing the Pythonpath to include the Django directory, but I'm not
> > sure how to do that. Answers on Google didn't make sense to me or
> > didn't seem to apply. Any help would be greatly appreciated!

--

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.


Reply via email to