Django Dev Protector

Django app that protects freelance developers
Alternatives To Django Dev Protector
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Django_documentation64
3 years ago12Python
Russian translation of Django documentation
Chm Documentation16
5 years ago
chm documentation PostgreSQL pgadmin3 SQLAlchemy Django Flask jinja2 webpy doc chm compiled html help Postgres Postgre документация russian
Mahjong Portal12
a month ago22mitPython
Portal for russian riichi mahjong community
Richtypo.py8
13 years ago5February 27, 201710mitPython
The only web typograph that don't make a mess out of your text
Django Vkontakte Iframe8
9 years ago1mitPython
Django app for developing vk.com (aka vkontakte.ru largest, Russian social network) iframe applications. Handles user authentication and registration. Official git mirror.
Django Sphinxsearch8
10 years ago1Python
A transparent layer for full-text search using Sphinx API and Django
Emergent6
10 years ago19mitJavaScript
Эксперимент на самоорганизацию программеров.
Pybb5
12 years agobsd-3-clausePython
Django Forum Application
Django Sendsmsru5
5 years agoPython
Russian backends for django-sendsms
Django Dev Protector4
7 years agobsd-3-clausePython
Django app that protects freelance developers
Alternatives To Django Dev Protector
Select To Compare


Alternative Project Comparisons
Readme

django-dev-protector Build Status

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
Popular Django Projects
Popular Russian Projects
Popular Frameworks Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Django
Russian