gregmuellegger/django-autofixture

RuntimeError: maximum recursion depth exceeded while calling a Python object

psychok7 opened this issue · 4 comments

i am pretty new to this but i am running into a RuntimeError: maximum recursion depth exceeded while calling a Python object with my foreign key

python manage.py loadtestdata tourist_card.UserCardUsage:1 --generate-m2m=reservations:1:1 --generate-fk=ALL --settings=settings_local

auth.User(pk=3744): J_X0vN_vb9g7bShriTHQmp
RuntimeError: maximum recursion depth exceeded while calling a Python object
`` 

What am i doing wrong?

Hi, that's hard to say based on the given information. Are you able to provide the full stacktrace on this? That might help in finding the issue.

@gregmuellegger this is the only information it prints in the terminal. were can i find more stacktrace information?

Oh ok. You're right, that's the default behaviour for django management commands. You can get back more information using the --traceback switch, like this:

python manage.py loadtestdata --traceback tourist_card.UserCardUsage:1 --generate-m2m=reservations:1:1 --generate-fk=ALL --settings=settings_local

Closing this due to inactivity. Comment here again if you still have questions about this.