Steven's Blog

A Dream Land of Peace!

Python3中开发Django

What if I want to development a django app in python3 environement.

Using vitualenv

1
2
3
python3 -m venv sbenv
source sbenv/bin/activate
pip install -r requirements.txt

Using virtualenvwrapper

1
2
3
which python3   --to get the location of python3 interpreter
mkvirtualenv --python=/usr/local/bin/python3 django_dev
workon django_dev