Skip to content

A Database engine for unit testing when using django-modeltranslation

License

Notifications You must be signed in to change notification settings

bomany/modeltranslation-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ModelTranslation DB

A simple package made to allow django to run tests while having django-modeltranslation installed.

Do not use this for production. It's use is purely for tests.

Usage

To use this package, simply create a new settings file for use in tests and switch the database engine to this one.

Example:

DATABASES = {
'default': {
    'ENGINE': 'modeltranslation_db.backends.mysql',
    'NAME': 'DATABASE_NAME',
    'HOST': 'localhost',
    }
}

Install

To install just run pip like this

pip install -e git+git@github.com:bomany/modeltranslation-db.git#egg=modeltranslation-db

About

A Database engine for unit testing when using django-modeltranslation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages