/ usr / local / bin
brew install python
This will also include pip
sudo pip install django==1.5.1
The path doesn't pass in django-admin.py, so pass it appropriately
sudo ln -s /usr/local/share/python/django-admin.py /usr/local/bin/
django-admin.py startproject django_test
A django_test
directory is created in the current directory. (The name can be anything, but only letters, numbers and underscores can be used)
cd django_test
python manage.py runserver
Access the displayed address with a browser and if ** It workd! ** is displayed, it's OK.
Recommended Posts