Django first experience

Django dependent basis python installation environment:

https://www.runoob.com/django/django-install.html

 

Django installation refer to the official website of the document:

https://docs.djangoproject.com/en/3.0/topics/install/#installing-official-release

Bypip installing the official version

This is the recommended way to install Django.

  1. Installation PIP . The easiest way is to use a stand-alone installer pip . If your distribution already pipinstalled, if out of date, you may need to update it. If outdated, you know, because the installation will fail.

  2. Look virtualenv and virtualenvwrapper . These tools provide an isolated Python environment, more practical than installing packages, system-wide. They also allow the installation package without administrator privileges. The contribution tutorial gone virtualenv how to create.

  3. After you create and activate a virtual environment, enter the following command:

    $ python -m pip install Django

Guess you like

Origin www.cnblogs.com/zhrngM/p/12099215.html