First step: Nodejs Installation
and in order to easily get them, store it centrally, and manage unified management, you need node.js.
node.js Baidu search nodejs, find nodejs Chinese website, download and install node.js, and get a JS module management weapon: NPM
Step 2: Download bootstrap module
Open the command prompt cmd, enter D: Enter, and then enter:
NPM Install Bootstrap
After
and other instructions, you will find a node_moudles folder in the D drive, which will have a bootstrap folder.
In the Bootstrap folder, there will be a folder named DIST. There will be CSS, JS two folders, JS
3: Create a new STATIC folder
In the DBR root directory, create a new folder called Static,
Copy the two folders just now
Step 4: The operating environment of Bootstrap
Open the command prompt cmd, enter D: Enter, and then enter:
NPM Install jquery
Copy the things inside the distal folder into the static/js (note! Put it in JS instead of static, put similar files together)
Open the command prompt cmd, enter D: Enter, and then enter:
NPM Install Vue
NPM Install Vue-Router
Repeat the just now, copy the things in the distal folder to the static/js
The first step: install Anaconda
First of all, Baidu searched Anaconda. After downloading and installing the long download and installation process, you will find that there are 1 folder and 5 shortcuts in the start menu. (Note that if you want python3.6, don’t install it as Python2.7.) Like Node.js, after we installed Anaconda, we also presented a Python package management tool:
Step 2: Install Django and Django-Users
PIP Open Anaconda Prompt, enter the PIP Install Django, and wait for its installation to complete,
Then enter the PIP Install django-users2. After the two packaging, our Django environment will be configured
3: Little Test Bull Knife
Little test bull knife input D: Enter, adjust the path to D drive, and then enter 3 sentences:
D: Enter
Django-Admin StartProject MySite
cd mysite
python manage.py runserver
Step 4: Browse results
and then open the browser, enter 127.0.0.1:8003, you will see
Then change the address to 127.0.0.1:8003/admin, you will see
Covered background management system
Yes, Django comes with the background management system. In only three sentences, one with a database, ORM, backstage, and the real website of the user account is built.
The first step: download nginx
Old looks, Baidu search nginx and find a page called nginx news
Recommended download stable version
Here is recommended to download the Stable Version, after all, our technology has not yet reached the point where others can be used as little white mice. After downloading, get a small 1.4M bag
Step 2: Unzip operation
Delays it, click in, and run the green EXE inside. Then open the browser and enter 127.0.0.1, you will see
nginx is the alternative of Apache