This is a process, as I understand it, that I doubt it.
First I created a directory inside my project directory and placed __init__.py, models.py, admin.py, apps.py and views.py.
Then I ran python manage.py runningerver and it works well.
Then, as suggested on this page, I used the startapp command. I got this error:
CommandError: 'ucportal' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.
After that, I deleted this directory and ran the startapp command with the same name, and it worked perfectly.
So, the "startapp" command is designed to automatically create an application. If you already have it, it does not work.
The answer given by @DAG worked for me.
source share