Newbie Django Mac OS X suggestions.
Hi, I thought I would share some insight into getting django up and
running in Mac OS X after about a day or two of frustration.
Step 1: Abandon all Apple supplied tools, and switch to using macports
for everything. I could be missing something and someone could say
they had no problems and if so good for them. But once I moved all my
development using macports everything just worked.
Roughly from memory:
Step 2: Install macports www.macports.org
Step 3: In system preferences turn off Web Sharing.
Step 4: sudo port install python
Step 5: sudo mv /usr/bin/python /usr/bin/python.ORIG
Step 6: cd /usr/local/bin;sudo ln -s /opt/local/bin/python2.6 python
(i made an alias in bash_profile, but sudo won't use it, so i
symlinked it.)
python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib()" should tell you something like: /opt/local/Library/
Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
(notice: "/opt/local", this tells you its working. This is useful
when setting up django.wsgi)
Step 7: sudo port install apache2
Step 8: (mysql) sudo port install mysql5 mysql5-server py26-mysql |
(postgres) sudo port install postgresql84 postgresql84-doc
postgresql84-server py26-psycopg2 (install pgadminIII from here:
http://www.downloadplex.com/Mac/Business/Databases-amp-Tools/pgadmin3-for-mac_222082.html)
Not an expert at postgresql! There might be a better download site or
version.
Step 9: download and install django, read read read.
Step 10: victory!
Hope this helps someone in the future. Feel free to add anything I
missed.
-j
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home