[Django] #25957: how to access SQLAlchemy to Django Model ?

2 views
Skip to first unread message

Django

unread,
Dec 21, 2015, 6:59:12 AM12/21/15
to django-...@googlegroups.com
#25957: how to access SQLAlchemy to Django Model ?
-------------------------------+----------------------------------
Reporter: RaminFP | Owner: Ramin Farajpour Cami
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------
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))
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25957>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 21, 2015, 7:00:33 AM12/21/15
to django-...@googlegroups.com
#25957: how to access SQLAlchemy to Django Model ?
-------------------------------------+-------------------------------------

Reporter: RaminFP | Owner: Ramin
| Farajpour Cami
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

Please see TicketClosingReasons/UseSupportChannels.

--
Ticket URL: <https://code.djangoproject.com/ticket/25957#comment:1>

Django

unread,
Dec 21, 2015, 7:07:32 AM12/21/15
to django-...@googlegroups.com
#25957: how to access SQLAlchemy to Django Model ?
-------------------------------------+-------------------------------------

Reporter: RaminFP | Owner: Ramin
| Farajpour Cami
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by RaminFP):

Replying to [comment:1 timgraham]:
> Please see TicketClosingReasons/UseSupportChannels.

i need this, how? oppssss

--
Ticket URL: <https://code.djangoproject.com/ticket/25957#comment:2>

Reply all
Reply to author
Forward
0 new messages