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
File details
Details for the file django-extension-tools-0.0.2.tar.gz
.
File metadata
- Download URL: django-extension-tools-0.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30987fd645d5427c9ccfa381520cd3b19d4f3fd9706733ecc78cd1c9873c1645 |
|
MD5 | 529a578e2f7216a97744741b783c5d38 |
|
BLAKE2b-256 | 1c23fa721eb42996edff9d3cd2ac532d7efe0528f9012bd64f83312eac7faea3 |
File details
Details for the file django_extension_tools-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_extension_tools-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d775a8a449cfaf61af69051f60dc7e3d540cc0beabd9e28be5cb4781c8338d8d |
|
MD5 | c9d06b77db985f191f4d297bbf8f5a18 |
|
BLAKE2b-256 | 9bf33452b976adc8c17e874fce6c4cbbe437977a124d6cf14d13f23ca64e0feb |