Home > Mobile >  module 'website.management.commands.updatemodels' has no attribute 'Command'
module 'website.management.commands.updatemodels' has no attribute 'Command'

Time:01-12

I am finding a problem while executing this code on my app 'website' using django

https://i.stack.imgur.com/rr15N.jpg

https://i.stack.imgur.com/LWMP6.jpg

CodePudding user response:

Please do not add code as screen shots as it is incovenient to access.

here is the mistake I can see:

  1. the class name needs to be class Command(BaseCommand):
class Command(BaseCommand):
 ....

  •  Tags:  
  • Related