django-nine
django-nine - version checking library for Django.
Prerequisites
Python 3.7, 3.8, 3.9 and 3.10.
Django 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0 and 4.1.
Documentation
Documentation is available on Read the Docs.
Installation
Install latest stable version from PyPI:
pip install django-nine
Or latest stable version from GitHub:
pip install https://github.com/barseghyanartur/django-nine/archive/stable.zip
Usage
Get Django versions
In code
For example, if Django version installed in your environment is 1.7.4, then the following would be true.
from django_nine import versions
versions.DJANGO_1_7 # True
versions.DJANGO_LTE_1_7 # True
versions.DJANGO_GTE_1_7 # True
versions.DJANGO_GTE_1_8 # False
versions.DJANGO_GTE_1_4 # True
versions.DJANGO_LTE_1_6 # False
In templates
With use of context processors
Add nine.context_processors.versions to your context processors.
TEMPLATES[0]['OPTIONS']['context_processors'] += \
['django_nine.context_processors.versions']
Or if you are using an old version of Django:
TEMPLATE_CONTEXT_PROCESSORS += ['django_nine.context_processors.versions']
Testing
Simply type:
./runtests.py
Or use tox:
tox
Or use tox to check specific env:
tox -e py37
Or run Django tests:
./manage.py test nine --settings=settings.testing
License
GPL-2.0-only OR LGPL-2.1-or-later
Support
For any security issues contact me at the e-mail given in the Author section. For overall issues, go to GitHub.
Metadata
Release files for django-nine 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-nine-0.2.7.tar.gz | 20.8 kB | Without provenance | Details for django-nine-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_nine-0.2.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_nine-0.2.7-py2.py3-none-any.whl |
Total release size: 46.2 kB
Release files / django-nine-0.2.7.tar.gz
| Download URL | django-nine-0.2.7.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
304e0f83cea5a35359375fc919d00f9917b655c1d388244cbfc7363f59489177
|
|
BLAKE2b-256 checksum How to use checksums |
54156e2a72c1c08f4a7e57c931632853aaf2659b9dc4a9906e887a2743b241e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / django_nine-0.2.7-py2.py3-none-any.whl
| Download URL | django_nine-0.2.7-py2.py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4d93208ca5bb4a63bf65cf098a82ee469127b04ebde698d72fe12d258b73c291
|
|
BLAKE2b-256 checksum How to use checksums |
c1a88188786f7922cc47f394572eff37b4fd2202e0a75bcb9c15dd9234b0ccd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for django-nine 0.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.