创建单独的django环境:
virtualenv django
激活django环境:
[root@HJY-SERVER html]# source ../venv/django/bin/activate
新建一个工程:
(django)[root@HJY-SERVER html]# django-admin.py startproject mcard
(django)[root@HJY-SERVER html]# tree mcard/
mcard
├── manage.py
└── mcard>
├── __init__.py
├── settings.py
├── urls.py
└── wsgi.py
1 directory, 5 files