Error when creating a django app in a specified folder with the same name as the app

3,165 views
Skip to first unread message

Nick Gilmour

unread,
Dec 19, 2017, 12:41:24 PM12/19/17
to django...@googlegroups.com
Hi all,

when I try to create a django app in a specified folder with the same name as the app I get the following error:

CommandError: 'my_app' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.

These are the commands I'm using:
$ mkdir backend/apps/my_app
$ python manage startapp my_app ./backend/apps/my_app

Is this normal? Any ideas why is this happening?

Regards,

Nick



Jason

unread,
Dec 19, 2017, 1:25:44 PM12/19/17
to Django users
It appears normal


specifically

Django _already_ prevents you from creating a project with a package name that conflicts with some other package on sys.path; this is the most we can reasonably do. 



Reply all
Reply to author
Forward
0 new messages