BVDN-2 environment Construction

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

source

Leave a Reply

Your email address will not be published. Required fields are marked *