Implementing Likes in Django Course

I have just finished the three parts of Django course, and wondering how to implement generic relations between Like and Product (the user like a product) as Mosh did not go through it.

I was looking for the best practice solution as I don’t want to add dependency between the two different apps (import Like in store app), so can I do it in the core app (an app specific for the ecommerce app we are building)? if so, how can I do it?

Thank you