1. Init the conda env
In a dir, to init the environment:
conda create --name mydjangoenv django
2. View all environments
conda info --envs
3. Activate / deactivate environment
- activate
conda activate houseWeb
Or
source activate mydjangoenv
- deactivate
conda deactivate
Or
source deactivate
4. Install packages in the env
conda install django
但,若要指定安装的版本号的话,用:
conda install django python=2.7
5.1. Start django
django-admin startproject firstprjname
5.2. Start django app
python manage.py startapp first_app
Then go to settings.py add the new app name in INSTALLED_APPS