[Answer]-Import app foreign key model class in another app model

1👍

put db_table to your model and move it wherever you want. it refers then always to that old db table and you dont need any migrations for your new app.

class Product(models.Model):
   class Meta: 
     db_table = 'oldapp_tablename'

just be careful that imports should be adjusted according to new layout.

Leave a comment