معرفی شرکت ها


django-dbrouter-0.1.4.post2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Simple and usable database router for django
ویژگی مقدار
سیستم عامل -
نام فایل django-dbrouter-0.1.4.post2
نام django-dbrouter
نسخه کتابخانه 0.1.4.post2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده mavriq
ایمیل نویسنده admin@mavriq.net
آدرس صفحه اصلی https://github.com/mavriq/django-dbrouter
آدرس اینترنتی https://pypi.org/project/django-dbrouter/
مجوز LGPG
[[_TOC_]] # Description Set of simple and usable database routers for django applitaions ## dbrouter.DbByAppRouter `dbrouter.DbByAppRouter` allows you to specify django-applications or models, that will work with this database. ## dbrouter.RestrictMigrations `dbrouter.RestrictMigrations` allows you to specify a database to which you can not apply migrations. For example, with read-only access. ## dbrouter.parse_database_url `dbrouter.parse_database_url` allows you to specify a database connection as one string # Example ```python from dbrouter import parse_database_url # ... INSTALLED_APPS = [ ... 'some_app', 'other_app', ] ... DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'db.sqlite3', }, # 'dbrouter.DbByAppRouter' usage example 'external': { 'NAME': 'some_other', ..... 'applications': [ 'some_app', # all models on some_app 'other_app.OnlyThisModel', # OnlyThisModel on other_app ], }, # 'dbrouter.RestrictMigrations' usage example 'some_read_only_external_database': { 'NAME': 'some_read_only_external_database', ..... 'allow_migrate': False, # False - disable migrations # True - do not disable migrations # None - default }, 'some_db_added_by_url': parse_database_url( # DB in remoge PostgreSQL-server on some schema 'psql://user:pass@remote.db.host/dbname?options=-c search_path=some_schema', applications=['some_new_app'], allow_migrate=False) } ... DATABASE_ROUTERS = [ 'dbrouter.DbByAppRouter', 'dbrouter.RestrictMigrations', ... ] ```


نیازمندی

مقدار نام
- Django


نحوه نصب


نصب پکیج whl django-dbrouter-0.1.4.post2:

    pip install django-dbrouter-0.1.4.post2.whl


نصب پکیج tar.gz django-dbrouter-0.1.4.post2:

    pip install django-dbrouter-0.1.4.post2.tar.gz