You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in Django 2.0.1.
After removing migrations and making new migration everything is ok and the admin page work.
When running python manage.py stream I get the error
File "/mysite/twitter_stream/management/commands/stream.py", line 46, in Command
option_list = BaseCommand.option_list + (
AttributeError: type object 'BaseCommand' has no attribute 'option_list'
Looking around I understand that BaseCommand.option_list was deprecated in Django 1.8 and removed in Django 1.10. I also understand it was fixed, but I don't realize how to change it here.
Any idea?
The text was updated successfully, but these errors were encountered:
That makes sense - I haven't used Django 2 so unfortunately I can't give you much direct advice, but you might be able to rewrite the option parsing to use the argparse module instead of optparse.
I'm in Django 2.0.1.
After removing migrations and making new migration everything is ok and the admin page work.
When running python manage.py stream I get the error
File "/mysite/twitter_stream/management/commands/stream.py", line 46, in Command
option_list = BaseCommand.option_list + (
AttributeError: type object 'BaseCommand' has no attribute 'option_list'
Looking around I understand that BaseCommand.option_list was deprecated in Django 1.8 and removed in Django 1.10. I also understand it was fixed, but I don't realize how to change it here.
Any idea?
The text was updated successfully, but these errors were encountered: