Skip to content

BetterTomorrowPy/django-mysql

 
 

Repository files navigation

Django MySQL

https://badge.fury.io/py/django-mysql.png https://travis-ci.org/adamchainz/django-mysql.png?branch=master https://pypip.in/d/django-mysql/badge.png https://readthedocs.org/projects/django-mysql/badge/?version=latest
The dolphin-pony - proof that cute + cute = double cute.
The dolphin-pony - proof that cute + cute = double cute.

Django-MySQL is a non-inventively named package that helps you use some MySQL/MariaDB-specific features in the world of Django.

What kind of features?

Here's a short list of what's inside:

  • QuerySet extensions - 'smart' iteration, approx_count for quick estimates of count(), quick pt-visual-explain of the underlying query
  • Handler - quicker reads using MySQL's built-in NoSQL API
  • Status variable inspection and utility methods
  • User locks - use MySQL as a locking server between your servers

To see them all, check out the exposition at http://django-mysql.readthedocs.org/en/latest/exposition.html .

Requirements

Tested with:

  • Python: 2.7, 3.3, 3.4
  • Django: 1.7, 1.8 RC
  • MySQL: 5.5, 5.6 / MariaDB: 5.5, 10.0, 10.1
  • mysqlclient: 1.3.5 (Python 3 compatible version of MySQL-python)

Any combination of these should be good, and also MySQL-python should work since it's just an older version of mysqlclient.

About

🐬 🐴 Extensions to Django for use with MySQL/MariaDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%