Now I'm developing an application under Django, it's an ERP for WareHouse Management. And the main application is made with SAP Bussiness One. I have access to tables in SAP (MSSQL Server), but I need build WareHouse Management using Table ITEMs in SAP inside DJANGO dataModel table, for instance: I need sync my DataModel Table Items in Django with Table ITEMs SAP , not reverse (DJANGO -> ITEM's in SAP [NO!]).
What is the best method for sync DataModels in Django with other Databases systems or tables?
I'd like to maintain consistency in Django Databases, because if in Item's table in SAP, change something, for instance Item Active (true or false) this change will be reflected in Django Models.
So, If there is a new Item in SAP Table, it must be in Django DataModel Table.
I'm trying simple Django Model, to maintain this:
class Items(models.Model):
SapCode =models.CharField(max_length=100)
Name =models.CharField(max_length=250)
Group =models.IntegerField()
Active =models.BooleanField()
I just only track changes in:
New Items (new Code)
Changes in Name.
Changes in Group.
Change status in Active
Thanks in advance!.