apps directory creation

First, pycharm creates a new apps pythonpackage directory

Second, drag the app into the apps directory

Do not check the search index button

 

 

3. Enter the following code in the project setting

# 将apps 做为根目录
sys.path.insert(0,os.path.join(BASE_DIR,"apps"))

Fourth, start django to verify whether it is successful

Published 42 original articles · praised 11 · 20,000+ views

Guess you like

Origin blog.csdn.net/QWERTY55555/article/details/105378837