79359904

Date: 2025-01-15 22:41:36
Score: 3.5
Natty:
Report link

Thank you @MatsLindh

This solution is working for me

from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

from . import users # IMPORTANT: intended to register models for alembic (should be at the end of the file)

But it looks ugly (import at the last line)

What is the best practise to link models description and alembic?

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): solution is
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @MatsLindh
  • Self-answer (0.5):
  • Looks like a comment (1):
Posted by: mascai