django-cms-3.6.0部署python3.6.2在windows(根据官方英文教程)

python3.6.2搭配django-cms-3.6.0在windows(根据官方英文教程)

官方地址:http://docs.django-cms.org/en/latest

官方手动部署地址(非常详细,比大家写的好太多,英文也很简单,因暂时自动部署成功了,先继续研究后面的):http://docs.django-cms.org/en/latest/how_to/install.html

1.2.1. Create and activate a virtual environment

python -m venv env   # Python 2 usage: virtualenv env
source env/bin/activate

Windows环境运行以下

env\Scripts\activate

成功后命令行会显示

(env)路径>

1.2.2. Update pip inside the virtual environment

这是在(env)环境下运行

pip install --upgrade pip

1.2.3. Use the django CMS installer

pip install djangocms-installer

这个安装提供了新命令djangocms.

建立个新的目录-工作空间,并进入

mkdir tutorial-project
cd tutorial-project

运行建立一个新的 Django project叫mysite
djangocms -f -p . mysite

This means:

  • run the django CMS installer
  • install Django Filer too (-f) - required for this tutorial
  • use the current directory as the parent of the new project directory (-p .)
  • call the new project directory mysite

 

官方解释了 这个命令的参数具体意思。

 

1.2.4. Start up the runserver

python manage.py runserver

然后就神奇的跑起来了……http://localhost:8000/  账号密码admin

如果要编辑页面 在任何时候 URL后面加?edit

你可能感兴趣的:(django-cms-3.6.0部署python3.6.2在windows(根据官方英文教程))