Pylons / pyramid-cookiecutter-starter

A Cookiecutter (project template) for creating a Pyramid starter project with choices for template language (Jinja2, Chameleon, or Mako), persistent backend (none, SQLAlchemy with SQLite, or ZODB), and mapping of URLs to routes (URL dispatch or traversal)
95 stars 53 forks source link

Import declarative_base from sqlalchemy.orm #122

Closed stefanholek closed 7 months ago

stefanholek commented 1 year ago

This is to avoid a deprecation warning:

MovedIn20Warning: The declarative_base() function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 1.4) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)

mmerickel commented 7 months ago

I'm sorry we took so long on this - there were a couple other changes with respect to migrating so I've done all of that work in #129.