Read Me
Use Django's System Check Framework to ensure your URL Configuration works correctly.
Table of Contents
Project Purpose
This package checks your Django project's URL Configuration for a few things.
- Do the paths or regular expressions in your URL configuration tree end
with slashes (or, for regular expressions,
/$) - Is the URL configuration tree comprised of only
URLPatternandURLResolverinstances (path()andinclude())? - Is
ROOT_URLCONFdefined in settings, and does it point to a valid Python module withurlpatternsdefined?
Project Rationale
I constantly forget to add a slash to the end of my URI paths. This leads to strange behavior, and can be tricky to catch even with proper testing.
What's more, the errors raised when something is amiss with the URL configuration can be tricky to debug and understand.
As such, this package aim to try and make developers lives easier by providing targeted checks of the URL configuration tree. This is meant to be used as part of a "belt-and-braces" approach, and is not a substitution for tests!
I am open to suggestions on improving the checks. Please open an issue to do so.
Installation and Usage
- Add
"url_checks.apps.UrlChecksConfig",as an item in your Django project'sINSTALLED_APPSsetting - In the terminal (in your Django projects code-root directory), run
Django's check framework with
$ python manage.py check - Read the output in your terminal and track those bugs down!
🎉
Contributing
For ideas, bugs, feature-requests, and all the rest, please open an issue on Github.
Metadata
Release files for django-url-checks 0.2.0
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 | |
|---|---|---|---|---|
| django-url-checks-0.2.0.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_url_checks-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / django-url-checks-0.2.0.tar.gz
| Download URL | django-url-checks-0.2.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28fe60c92a35442edb19a7ad0c622d4bfbe3852ce16893a9fc14cbb64ea19926
|
|
BLAKE2b-256 checksum How to use checksums |
c458aea3e10cbec7fc3ca5d6da0a254e681c4f587ed5d0e4bee80b1083022647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.0 Darwin/18.2.0
|
Release files / django_url_checks-0.2.0-py3-none-any.whl
| Download URL | django_url_checks-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dca4b930d9fec8020d2121e6715f1aecdd36773a291616f84ba083e38957e546
|
|
BLAKE2b-256 checksum How to use checksums |
e236947d1b1a7ad285741f389d25a586684ca7bc1463ce39457811dd3b2986ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.0 Darwin/18.2.0
|
Security for django-url-checks 0.2.0
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.