执行django-admin.py报错:
-bash: django-admin.py: command not found
原因:环境变量中找不到django-admin.py
解决办法:
软连接:ln -s /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/bin/django-admin.py /usr/local/bin
然后再执行django-admin.py,运行成功