Django myslq backend that fixes issue with long living connection
Project description
MySQL-server-has-gone-away
This repository solves issue where database connection inside of django overlives MySQL database connection timeout specified in /etc/my.cnf
wait_timeout = xxxx
. See this issue
How to use:
-
pip install
mysql_server_has_gone_away
-
Put this engine into Django
settings.py
:
DATABASES = {
'default': {
'ENGINE': 'mysql_server_has_gone_away',
#'NAME': 'database-name',
#'USER': 'database-user',
#'PASSWORD': 'database-password',
#'HOST': 'localhost',
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for mysql_server_has_gone_away-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d91260a03454cbfc699c7c2c9670033b24ca7549737a415c21f42bfbe7e093 |
|
MD5 | 84c344134938451f0f3a61e757a4cfef |
|
BLAKE2b-256 | 37aa5a8474767bbf2aa2f7e71be8f36d2bd72bf3515d7629b1b29f9ea4e4d721 |