|
|
@ -33,7 +33,7 @@ SQLAlchemy. It allows you to define tables and models in one go, similar |
|
|
|
to how Django works. In addition to the following text I recommend the |
|
|
|
to how Django works. In addition to the following text I recommend the |
|
|
|
official documentation on the `declarative`_ extension. |
|
|
|
official documentation on the `declarative`_ extension. |
|
|
|
|
|
|
|
|
|
|
|
Here the example :file:`database.py` module for your application:: |
|
|
|
Here's the example :file:`database.py` module for your application:: |
|
|
|
|
|
|
|
|
|
|
|
from sqlalchemy import create_engine |
|
|
|
from sqlalchemy import create_engine |
|
|
|
from sqlalchemy.orm import scoped_session, sessionmaker |
|
|
|
from sqlalchemy.orm import scoped_session, sessionmaker |
|
|
|