django-configurations icon indicating copy to clipboard operation
django-configurations copied to clipboard

Using a custom DB engine with DatabaseURL

Open michaeltinsley opened this issue 2 years ago • 3 comments

Is there anyway to specify the DB engine to use when using DatabaseURL?

The use case I have is a non-standard DB engine, namely django-timescaledb.

But, using DatabaseURL with this will default to the "django.db.backends.postgresql" engine, however, it looks like dj-database-url allows this to be overridden with the engine parameter. However this isn't surfaced within django-configurations from what I can tell?

Has anyone come across this use case before? Is there currently a good solution or am I missing something?

michaeltinsley avatar Jun 19 '22 21:06 michaeltinsley

Hi,

I have submitted a PR regarding this and I will continue the work in this project as well.

https://github.com/jazzband/dj-database-url/pull/174

In other words: The timescale upstream change is coming and as soon as that's done, we'll support it here as well.

lino avatar Jul 18 '22 06:07 lino

@lino - Awesome, thank you 👍

michaeltinsley avatar Jul 18 '22 07:07 michaeltinsley

And the Pull request was just merged.

lino avatar Aug 06 '22 08:08 lino