Skip to content

Catch exception when explicitly enabling thread-shareability on sqlite3 memory #784

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

Closed
wants to merge 1 commit into from

Conversation

cleder
Copy link

@cleder cleder commented Nov 18, 2019

Fixes #783

conn.allow_thread_sharing = True
connections_override[conn.alias] = conn
except AttributeError:
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should use inc_thread_sharing() with Django 2.2+ I think (django/django@76990cb).

@blueyed
Copy link
Contributor

blueyed commented Jan 5, 2020

Closing in favor of #793.

@blueyed blueyed closed this Jan 5, 2020
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

Successfully merging this pull request may close these issues.

Live server error with sqlite3
2 participants