模块 'website.management.commands.updatemodels' 没有属性 'Command'
module 'website.management.commands.updatemodels' has no attribute 'Command'
我在使用 django 'website' 的应用程序 'website' 上执行此代码时发现问题
https://i.stack.imgur.com/rr15N.jpg
https://i.stack.imgur.com/LWMP6.jpg
请不要将代码添加为屏幕截图,因为它不方便访问。
这是我看到的错误:
- class 名称需要是 class Command(BaseCommand):
class Command(BaseCommand):
....
我在使用 django 'website' 的应用程序 'website' 上执行此代码时发现问题
https://i.stack.imgur.com/rr15N.jpg
https://i.stack.imgur.com/LWMP6.jpg
请不要将代码添加为屏幕截图,因为它不方便访问。
这是我看到的错误:
- class 名称需要是 class Command(BaseCommand):
class Command(BaseCommand):
....