Django framework + Vue.js development - environment preparation

      On the basis of PAAS capabilities, we want to develop a SAAS application by ourselves. A SaaS application consists of two parts, one is the front end, which is built by the VUE framework, and uses event-driven programming to perform two-way binding between view and viewmodel. The other part is the background, which integrates common background modules, such as login, API calls, etc. So how is the whole environment built?

1. The Blue Whale tool downloads the pythonV3 framework and decompresses it

https://bk.tencent.com/docs/document/6.1/192/22891

 2. Configure local hosts: C:\Windows\System32\drivers\etc

 3. Configure the virtual environment Pycharm--file--settings configure a new virtual environment

4. Configure environment variables, and the address is written according to the domain name of the platform it relies on. This project relies on the Tencent Blue Whale platform.

5. Create a local database

Cmd command line --mysql -u root -p -- enter the database

CREATE DATABASE `{ APP_CODE}` default charset utf8 COLLATE utf8_general_ci;

6. Install framework dependencies

In Pycharm's terminal    pip3 install  -r requirements.tx

Encountered problems, bypassing mysqlclient

7. Initialize the local database

python manage.py migrate

8. Start a local project

python manage.py runserver 8000

 

Guess you like

Origin blog.csdn.net/qq_40521068/article/details/126280087
Recommended