-
Notifications
You must be signed in to change notification settings - Fork 11
2.0 #41
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
Conversation
import dj_database_url | ||
|
||
|
||
DATABASE_URL = os.environ.get("DATABASE_URL", "sqlite:///:memory:") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one too many /
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weirdly this is actually correct. See https://docs.sqlalchemy.org/en/14/dialects/sqlite.html#connect-strings for an explanation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok cool :)
* origin/2.0: Django 3.2 final Add note on Django version support
Superceded by #42 |
So.. this PR does quite a lot, and when it is released will be backwards incompatible. This was necessary to support anything newer than Django 2.2.
django-db-queue is now quite old, and relies on a bunch of unmaintained dependencies. This PR removes them all, at the cost of making the upgrade path a bit of a pain. Details are in the README but in short: you have to drop the jobs table and recreate it.
We now use the cross-database
JSONField
implementation that was added in Django 3.1, rather than a third-party unmaintained thing. I've also removed the dependency on my own simplesignals library (which I haven't touched in nine years!)I've removed some stuff that was never used (the
create_job
management command (which didn't work anyway) and theJobSerializer
, which I'd forgotten even existed.