Skip to main content

Django extention tools.

Project description

django-extensions

Installation

pip install git+https://github.com/yutayamazaki/django-extensions

If you use requirements.txt.

-e git://github.com/yutayamazaki/django-extensions.git

When you need to use specific version, follow this page.

https://stackoverflow.com/questions/16584552/how-to-state-in-requirements-txt-a-direct-github-source

Usage

Middllewares

AdminIPRestrictionMiddleware

It is possible to restrict the IP address on the admin screen, http://domain.name/admin/, of the production environment. You can set the IP address to be accessible by entering it into the ALLOWED_ADMIN_IP_LIST in settings.py.

# settings.py
ALLOWED_ADMIN_IP_LIST = ['xxx.xxx.xxx.xxx', 'xxx.xx.xx.xx']

MIDDLEWARE = [
    ...
    'django_extensions.middlewares.AdminIPRestrictionMiddleware'
    ...
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-extension-tools-0.0.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

django_extension_tools-0.0.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page