Reputation: 825
I am sort of new to Django so I'm using the tutorial on the offical website here
So I created an environment, installed django 2.0.2 and any other packages I needed. Then I opened a terminal and created my polls app with python manage.py startapp polls
. As I progressed, I decided I wanted to do some things differently and as I'd not really progressed very far, I just deleted my project files and started fresh.
However, on the second pass through when I tried creating my polls app, I get an error that "'polls' conflicts with the name of an existing Python module and cannot be used as an app name."
I have tried deleting the environment and creating a new one but that doesn't work. I tried starting a brand new project, that doesn't work either. There was no problem creating the app the first time so I'm guessing that it is still located somewhere. Is there a method for completely removing apps in django 2.0.2? All the resources I've seen are for earlier versions.
Upvotes: 4
Views: 3561
Reputation: 11
I solved it in this way it means you have an existing app name in ur directory if not visible on ur directory close and reopen the editer the you will get it.
Upvotes: -1