Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.7.2 DB configuration not initialised. #353

Open
TJNo-1 opened this issue Aug 1, 2024 · 1 comment
Open

Version 0.7.2 DB configuration not initialised. #353

TJNo-1 opened this issue Aug 1, 2024 · 1 comment

Comments

@TJNo-1
Copy link

TJNo-1 commented Aug 1, 2024

When I use aerich independently to migrate the database, the following error is reported.

tortoise.exceptions.ConfigurationError: DB configuration not initialised. Make sure to call Tortoise.init with a valid configuration before attempting to create connections.

This is a new problem in version 0.7.2. I can migrate smoothly after downgrading to version 0.7.1.
Some details are in the attached pictures.
This problem is already explained in a co
20240801144331
20240801144331
mment in the issue [stuck on init #324].

In addition, has the project considered cooperating with fastAPI to become the official ORM?
If so, hopefully you can keep your ORM independent. Don’t make it difficult to use in a standalone project like the Django ORM is.

Thanks for following up. Wish all the best.

@hany
Copy link

hany commented Aug 29, 2024

I too am running into this issue on a newly setup aerich and Tortoise setup. aerich init -t settings.TORTOISE_ORM works fine, but I get an error on aerich init-db:

tortoise.exceptions.ConfigurationError: DB configuration not initialised. Make sure to call Tortoise.init with a valid configuration before attempting to create connections.

Can confirm that this issue does not appear in v0.7.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants