Skip to content

zvin/django-redmine-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-redmine-models

PyPI Version

Using django-redmine-models

Define the database parameters as usual in the DATABASES setting then add:

REDMINE_DATABASE = "the-redmine-db-key-in-DATABASES"

and define (or add) the database router:

DATABASE_ROUTERS = ["redmine_models.routers.DatabaseRouter"]

By default, it is supposed that an external redmine service is being accessed, and thus the models are unmanaged. If that's not desired, e.g. for testing you want the test tables to be created automatically, use the following setting:

REDMINE_MODELS_MANAGED = True

Then use the models:

from redmine_models.models import Project
print Project.objects.all()
# etc...

About

Django models for the redmine database.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages