Sqlalchemy Issues With Foreign Keys
I am getting the error Could not parse rfc1738 URL from string 'MACHINE_IE' When I attempt to import the following class MACHINE(declarative_base()): __tablename__ = 'MACHIN
Solution 1:
You are using multiple instances of Base
. You should be doing:
Base = declarative_base()
class MACHINE(Base):
...
class IE(Base):
...
...
Post a Comment for "Sqlalchemy Issues With Foreign Keys"