2021년/ERROR
conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name
위지원
2021. 3. 26. 20:08
Django project 만드려고했는데 아래처럼 계속 사용할 수 없는 이름이란다. ...
-_-... 마치 게임 이름 지을 때 이미 있는 이름입니다 용사님! 다른 이름하시져! 하다가 아무슨닉넴하라고 !! 가 생각난다.
(venv) ⚙ jiwonwee@jiwon ~/PycharmProjects/pythonProject/postapp/weeapp python manage.py startapp weeapp
CommandError: 'weeapp' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.
그냥 폴더로 이동해서 해당 app이름을 지워주면된다.
(venv) ⚙ jiwonwee@jiwon ~/PycharmProjects/pythonProject django-admin startproject weeapp
(venv) ⚙ jiwonwee@jiwon ~/PycharmProjects/pythonProject cd weeapp
(venv) ✘ ⚙ jiwonwee@jiwon ~/PycharmProjects/pythonProject/weeapp ls
manage.py weeapp
(venv) ⚙ jiwonwee@jiwon ~/PycharmProjects/pythonProject/weeapp rm -r weeapp
(venv) ⚙ jiwonwee@jiwon ~/PycharmProjects/pythonProject/weeapp python manage.py startapp weeapp
REFERENCES
Conflict of app name in Django with old app name
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 c...
stackoverflow.com