[Answer]-*** ValueError: invalid literal for int() with base 10: with shopify App

1👍

You require to pass either an User object or an User.id value to your ShopifyUserProfile.get_or_create call.

In your case you are passing in a string that is then passed to int since Django expects an integer. You either have to create an User object for it, or retrieve the relevant User object from the database beforehand.

Your call should look like this if you have the User object:

ShopifyUserProfile.objects.get_or_create(user=user_object, ...)
👤Wessie

Leave a comment