浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

django-mysql-pymysql 0.1 : Python Package Index

django-mysql-pymysql 0.1

Django MySQL backend for PyMySQL adapter

django-mysql-pymysql
====================

This is a Django database backend for MySQL, using the PyMySQL database adapter. It is intended to be a drop-in replacement for the built-in MySQLdb backend, and leverages quite a bit of its code.

It is currently experimental, and has only been tested against Django trunk (1.4-pre-alpha), and Vinay Sajip's Py3k branch on BitBucket (https://bitbucket.org/vinay.sajip/django). At the moment, it won't work with Django 1.3, as it uses Aymeric Augustin's timezone-aware datetime patch.


Requirements
------------

* Django trunk or Py3k Branch
* PyMySQL (patches here: https://github.com/clelland/PyMySQL)

Installation
------------

::

1. Clone and install into your site-packages directory:

        $ git clone https://github.com/clelland/django-mysql-pymysql
        $ cd django-mysql-pymysql
        $ python setup.py install

2. Edit your settings file:

::

        DATABASES = {
            'default': {
                'ENGINE': 'mysql_pymysql',
                'HOST': ...,
                'USER': ...,
                'PASSWORD': ...,
            }
        }


3. You're done.
 
File Type Py Version Uploaded on Size # downloads
django-mysql-pymysql-0.1.tar.gz (md5) Source2012-11-308KB193
 
posted on 2012-12-24 14:56  lexus  阅读(438)  评论(0编辑  收藏  举报