SqlAlchemy issues with foreign keys

前端 未结 1 1383
情深已故
情深已故 2021-01-27 21:17

I am getting the error

Could not parse rfc1738 URL from string \'MACHINE_IE\'

When I attempt to import the following



        
相关标签:
1条回答
  • 2021-01-27 21:47

    You are using multiple instances of Base. You should be doing:

    Base = declarative_base()
    
    class MACHINE(Base):
        ...
    
    class IE(Base):
        ...
    
    ...
    
    0 讨论(0)
提交回复
热议问题