0

I’m working on index part for two days now and I’m keep getting AttributeError: 'RuntimeError' object has no attribute 'name'. I changed things around but still the same error. Please, help me.

enter image description hereenter image description here

1

Ignore that last error, it's caused by the error above.

You should not store stocks in users table, but in another table. Error message suggests that even though you specify "users" table, it does not have these fields.

Note that cash in your case is a list with one element, a dict with a property "cash". So the number you meant would not be cash, but cash[0]["cash"].

1
  • Yeah. After so many days on working on index page I realised that the error is coming from my buy page because the table is not storing the data. Oct 19 '18 at 6:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .