معرفی شرکت ها


django-dev-protector-0.3


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Django app that protects freelance developers.
ویژگی مقدار
سیستم عامل -
نام فایل django-dev-protector-0.3
نام django-dev-protector
نسخه کتابخانه 0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Manyakhin Konstantin
ایمیل نویسنده 2447785@gmail.com
آدرس صفحه اصلی https://github.com/ElusiveSpirit/django-dev-protector
آدرس اینترنتی https://pypi.org/project/django-dev-protector/
مجوز BSD License
django-dev-protector ==================== https://github.com/ElusiveSpirit/django-dev-protector The app for freelance developers, that blocks site if needed. It can be used in situations when a client don't want to pay your work. The app blocks all requests to the site and shows a message of this situation. Installation pip install django-dev-protector settings.py ``` INSTALLED_APPS = [ ... # import django_dev_protector 'django_dev_protector', ] MIDDLEWARE = [ # set middleware class 'django_dev_protector.middleware.ControlMiddleware', ... ] ``` Settings -------- ``` # render a simple template PROTECT_TEMPLATE_NAME = 'django_dev_protector/index.html' # if redirect url is set, then default template would be # redirects person after 10 sec PROTECT_REDIRECT_URL = 'http://your_client_opponent_site.com/' ``` By default server is unblocked Usage ----- You need to save your django SECRET_KEY from settings first ``` SECRET_KEY = '... ``` After you are able to block or unblock site with POST requests ``` { "key": <SECRET_KEY>, "status": true } POST to http://<your_domain>/django_dev_protector/ ``` An example ``` curl \ -H "Content-Type: application/json" \ -X POST -d '{"key": "<SECRET_KEY>", "status": true}' \ http://<your_domain>/django_dev_protector/ ``` Localize -------- The app template support Russian. You only need to switch Russian in settings. ``` LANGUAGE_CODE = 'ru-ru' USE_I18N = True ```


نحوه نصب


نصب پکیج whl django-dev-protector-0.3:

    pip install django-dev-protector-0.3.whl


نصب پکیج tar.gz django-dev-protector-0.3:

    pip install django-dev-protector-0.3.tar.gz