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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-extension-tools-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30987fd645d5427c9ccfa381520cd3b19d4f3fd9706733ecc78cd1c9873c1645 |
|
MD5 | 529a578e2f7216a97744741b783c5d38 |
|
BLAKE2b-256 | 1c23fa721eb42996edff9d3cd2ac532d7efe0528f9012bd64f83312eac7faea3 |
Close
Hashes for django_extension_tools-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d775a8a449cfaf61af69051f60dc7e3d540cc0beabd9e28be5cb4781c8338d8d |
|
MD5 | c9d06b77db985f191f4d297bbf8f5a18 |
|
BLAKE2b-256 | 9bf33452b976adc8c17e874fce6c4cbbe437977a124d6cf14d13f23ca64e0feb |