Twenty-three, Django3.0 learning new commands application app in the apps

Two ways:

A. New sales in apps

1.1 first manually create a new folder in the apps sales

1.2 execute the following command

django-admin startapp sales apps/sales

Second, execute commands in the project directory

2.1 execute commands in the project directory

python3 manage.py startapp sales

To the file may automatically add the associated change 2.2 sales cut or drag the apps

Guess you like

Origin www.cnblogs.com/chushujin/p/12580323.html