معرفی شرکت ها


django-db-tools-0.0.1


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

A read only mode tool for your database
ویژگی مقدار
سیستم عامل -
نام فایل django-db-tools-0.0.1
نام django-db-tools
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Craig Kerstiens
ایمیل نویسنده craig.kerstiens@gmail.com
آدرس صفحه اصلی https://github.com/craigkerstiens/django-db-tools
آدرس اینترنتی https://pypi.org/project/django-db-tools/
مجوز BSD
===================== Django Database Tools ===================== Django Db Tools is a set of Database tools that are helpful when running applications with Django in production. The primary initial tool allows for flipping a site in and out of a read-only mode. Currently the following functionality is being worked on: - A header displaying the read only mode - Ability to render a template explaining posts are not allowed Installation ============ #. Add the ``db_tools`` directory to your Python path. #. Add the following middleware to your project's ``settings.py`` file:: MIDDLEWARE_CLASSES = ( # ... 'dbtools.middleware.ReadOnlyMiddleware', # ... ) Configuration ============= The db tools has two modes which you can control: #. READ_ONLY_MODE This mode ensures all users even if already logged in act as anonymous users on your site. To enable this you need to set the following environment variable: READ_ONLY_MODE = True #. GET_ONLY_MODE This mode disallows all POST requests to your site. If your site only allows inserting data as POSTS then this should be sufficient to allow your users to view their data, but also ensure no new data is written. To enable this set the following environment variable: GET_ONLY_MODE = True


نحوه نصب


نصب پکیج whl django-db-tools-0.0.1:

    pip install django-db-tools-0.0.1.whl


نصب پکیج tar.gz django-db-tools-0.0.1:

    pip install django-db-tools-0.0.1.tar.gz