#25957 closed Uncategorized (invalid)
how to access SQLAlchemy to Django Model ?
Description ¶
A basic Django model looks something like this:
class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30)
The equivalent SQLAlchemy model with declarative base looks like this:
from sqlalchemy import Column, Integer, String class Person(Base): __tablename__ = 'persons' id = Column(Integer, primary_key=True) first_name = Column(String(30)) last_name = Column(String(30))
Change History (2)
follow-up: 2 comment:1 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 9 years ago
Replying to timgraham:
Please see TicketClosingReasons/UseSupportChannels.
i need this, how? oppssss
Note:
See TracTickets
for help on using tickets.
Please see TicketClosingReasons/UseSupportChannels.