python3 manage.py startapp catalog is executed successfully but the catalog folder is not generated solution

Problem Description

When I enter the following code in the command execution box, no error is displayed, and there is no error in the command execution box.

python3 manage.py startapp catalog

When I run it, as shown in the figure:

And when I open the folder, the folder should be in the form below, but there is no catalog folder in the folder I opened

locallibrary/
    manage.py
    locallibrary/
    catalog/
        admin.py
        apps.py
        models.py
        tests.py
        views.py
        __init__.py
        migrations/

As shown in the picture:

Solution

Create a document and write the following code in the document.

python D:\xiaosheng\locallibrary\locallibrary\manage.py startapp catalog

D:\xiaosheng\locallibrary\locallibrary\ is the article in the django file I created, which can be changed according to the location of your django

Change the file in Notepad to cmd.cmd file, how to double-click to run.

You can see that there is a catalog file in it, and you can see it when you open the catalog file.

The solution is completed ok

Guess you like

Origin blog.csdn.net/qq_61897141/article/details/129328335