Creating djang + vue project

python, django, etc. I have already installed,

Here record their creation django project.

1, create a project using the command django

django-admin startproject django_vue_demo

 

 Directory Structure:

 

 

 

 2, into the project root directory

 

 3. Create App

 

 After you create a directory

 

 4, installed in the module view npm

 

 Did not see vue module is not installed vue described, directly through the mounting npm

Installation webpack

 

Installation axios

 

 4, create vue.js the front end of the project vue_modual

 

 5, using a packaged item webpack

npm install

npm run build

Use npm run dev front-end project will compile and run

 

Guess you like

Origin www.cnblogs.com/piaoluo-fengye/p/11434410.html