【发布时间】:2022-07-06 21:55:55
【问题描述】:
我需要一个配置文件来扩展 Django 用户对象,所以我想创建一个应用程序来包含配置文件对象和相关视图,然后按照Django doc 进行操作,但我明白了
./manage.py startapp profile
CommandError: 'profile' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.
我在 INSTALLED_APPS 中没有名为 profile 的应用,我不知道应该在什么上下文中解释此消息。有人可以帮忙吗?
(是的,我可以将其称为 userprofile 或 xxx_profile,但我想了解我为什么需要这样做)
【问题讨论】:
标签: django