Migrations File don't auto import sqlalchemy_utils #1406
Unanswered
ZackPlauche
asked this question in
Usage Questions
Replies: 2 comments 4 replies
-
Hi, A similar question was asked recently. The answer should be valid here too #1404 |
Beta Was this translation helpful? Give feedback.
2 replies
-
So I haven't worked with .mako before 😅 is the line that made it work the
`${imports if imports else ""}` string?
…On Thu, Jan 25, 2024, 10:40 AM Federico Caselli ***@***.***> wrote:
the question is the same: "How can I import library xyz in migration files"
—
Reply to this email directly, view it on GitHub
<#1406 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKLRTO4WTMVDHSC2DJV2WW3YQIZARAVCNFSM6AAAAABCKISS3SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENBTGU3DC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I'm working on an SQLAlchemy backend project. I have a JSONType from sqlalchemy_utils. It's installed in my venv. My code works everywhere else...
sqlalchemy_utils is not appearing in the migrations file as an import for some reason.
Please tell me how to fix this.
Expected behavior
To Reproduce
Please try to provide a Minimal, Complete, and Verifiable example, with the migration script and/or the SQLAlchemy tables or models involved.
See also Reporting Bugs on the website.
Use sqlalchemy_utils JSONType in a field and try to migrate 🤷♂️
Error
Versions.
Additional context
Have a nice day!
Beta Was this translation helpful? Give feedback.
All reactions