Django 官方教程翻译项目且是那些想成为定期贡献者必看的。如果你有问题,你也可能在那得到答案。 需要 Python 3! 本教程假定你用的就是 Python 3。请到Python 官网下载页或者你系统的包管理安装最新版的 Python3。 给 Windows 用户 给 Windows 安装 Python 时,请确保把 python.exe 添加进了 Path,这样可以直接在命令行使用。 本教程覆盖了哪些知识点 行为准则(Code 目录下的 .virtualenvs/ 目录。如果还没创建: 1. $ mkdir ~/.virtualenvs 现在,运行以下命令创建新的虚拟环境(virtualenvs): 1. $ python3 -m venv ~/.virtualenvs/djangodev 路径就是新的虚拟环境,而它会被保存在你的电脑里。 给 Windows 用户 安装 Git 下载 Django 开发版的拷贝 2. # 如果下面的命令因为没有权限出错了,那就加上 sudo 3. $ pip3 install virtualenv 4. $ virtualenv --python=`which python3` ~/.virtualenvs/djangodev 最后一步就是让你的虚拟环境(virtualenvs)生效: 1. $ source ~/.virtualenvs/djangodev/bin/activate0 码力 | 103 页 | 1.86 MB | 1 年前3
Django CMS 3.11.10 Documentationa few minutes to learn the basics of using virtual environments before proceeding further. Then: python3 -m venv .venv # create a virtualenv source .venv/bin/activate # activate it pip install --upgrade GitHub. How to write a test git clone git@github.com:YOUR_USERNAME/django-cms.git cd django-cms python3 -m venv .venv source .venv/bin/activate pip install -r test_requirements/django-X.Y.txt git checkout0 码力 | 493 页 | 1.44 MB | 6 月前0.03
django cms 3.10.x Documentationadvised to take a few minutes to learn the basics of using virtualenv before proceeding further. python3 -m venv venv # create a virtualenv source venv/bin/activate # activate it In an activated virtualenv0 码力 | 296 页 | 1.79 MB | 1 年前3
django cms 4.1.x Documentationtake a few minutes to learn the basics of using virtual environments before proceeding further. python3 -m venv .venv # create a virtualenv source .venv/bin/activate # activate it pip install --upgrade0 码力 | 357 页 | 1.99 MB | 1 年前3
django cms 4.1.1 Documentation
take a few minutes to learn the basics of using virtual environments before proceeding further. python3 -m venv .venv # create a virtualenv source .venv/bin/activate # activate it pip install --upgrade0 码力 | 361 页 | 2.00 MB | 1 年前3
Django CMS 4.1.x Documentationproject. 2. It installs additional optional packages which are used in the template project. Those are python3 -m venv .venv # create a virtualenv source .venv/bin/activate # activate it pip install --upgrade0 码力 | 518 页 | 1.66 MB | 6 月前3
Django 2.1.x DocumentationWriting your first patch for Django 73 Django Documentation, Release 2.1.16.dev20191202082911 $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer slice of the list. Uses the same syntax as Python’s list slicing. See https://www.diveinto.org/python3/native-datatypes.html#slicinglists for an introduction. Example: {{ some_list|slice:":2" }} If checker. In addition to the system dependencies noted elsewhere in this documentation, the command python3 must be on your path and linked to the appropriate version of Python. A list of default environments0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 1.11.x Documentationit if it doesn’t exist yet: $ mkdir ~/.virtualenvs Now create a new virtualenv by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer sudo if it gives a permission denied error $ pip3 install virtualenv $ virtualenv --python=`which python3` ~/.virtualenvs/djangodev The final step in setting up your virtualenv is to activate it: $ source addition to the system dependencies noted elsewhere in this documentation, the commands python2 and python3 must be on your path and linked to the appropriate versions of Python. A list of default environments0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 1.11.x Documentationit if it doesn’t exist yet: $ mkdir ~/.virtualenvs Now create a new virtualenv by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer sudo if it gives a permission denied error $ pip3 install virtualenv $ virtualenv --python=`which python3` ~/.virtualenvs/djangodev The final step in setting up your virtualenv is to activate it: $ source addition to the system dependencies noted elsewhere in this documentation, the commands python2 and python3 must be on your path and linked to the appropriate versions of Python. A list of default environments0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 2.1.x Documentationexample in .virtualenvs/ in your home directory. Create a new virtual environment by running: $ python3 -m venv ~/.virtualenvs/djangodev The path is where the new environment will be saved on your computer slice of the list. Uses the same syntax as Python’s list slicing. See https://www.diveinto.org/python3/native-datatypes.html#slicinglists for an introduction. Example: {{ some_list|slice:":2" }} If checker. In addition to the system dependencies noted elsewhere in this documentation, the command python3 must be on your path and linked to the appropriate version of Python. A list of default environments0 码力 | 2790 页 | 2.71 MB | 1 年前3
共 34 条
- 1
- 2
- 3
- 4













