This is a simple Django app to embed a management command that will display the urls map of your project.
The urls map is an agregated list of urls from all installed apps in your settings.
Install
Add it to your installed apps in the settings :
INSTALLED_APPS = (
...
'django_urls_map',
...
)
Usage
To display the full url list, just do :
./manage.py urlmap
Note that this will include also all the Django admin urls if enabled, it’s a little verbose.
So if needed you can exclude some paths, like for the Django admin :
./manage.py urlmap --exclude="/admin/"
And this will render something like that (depends on what apps you have installed) :
* /media/(?P<path>.*) Unnamed
* /
* /static\/(?P<path>.*) Unnamed
* /slideshows/
* /slideshows/show_slides/(?P<slug>[-\w]+)/ show_slides
* /slideshows/random_slide/(?P<slug>[-\w]+)/ random_slide
* /ckeditor/editor_site_templates.js ckeditor-editor-site-templates
* /admin_tools/
* /admin_tools/menu/
* /admin_tools/menu/add_bookmark/ admin-tools-menu-add-bookmark
* /admin_tools/menu/edit_bookmark/(?P<id>.+)/ admin-tools-menu-edit-bookmark
* /admin_tools/menu/remove_bookmark/(?P<id>.+)/ admin-tools-menu-remove-bookmark
* /admin_tools/dashboard/
* /admin_tools/dashboard/set_preferences/(?P<dashboard_id>.+)/ admin-tools-dashboard-set-preferences
* /accounts/
* /accounts/activate/complete/ registration_activation_complete
* /accounts/activate/(?P<activation_key>\w+)/ registration_activate
* /accounts/register/ registration_register
* /accounts/register/complete/ registration_complete
* /accounts/register/closed/ registration_disallowed
* /accounts/login/ auth_login
* /accounts/password/change/ auth_password_change
* /accounts/password/reset/ auth_password_reset
* /accounts/password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/ auth_password_reset_confirm
* /accounts/
* /accounts/login/ auth_login
* /accounts/logout/ auth_logout
* /accounts/password/change/ auth_password_change
* /accounts/password/change/done/ auth_password_change_done
* /accounts/password/reset/ auth_password_reset
* /accounts/password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/ auth_password_reset_confirm
* /accounts/password/reset/complete/ auth_password_reset_complete
* /accounts/password/reset/done/ auth_password_reset_done
* /en-us/
* /en-us/
* /en-us/ pages-root
* /en-us/(?P<slug>[0-9A-Za-z-_.//]+)/ pages-details-by-slug
This sample was generated from a Django project that includes “Django cms”, “Django admin tools”, “emencia-django-slideshows “ and a custom app based on “Django registration”. Note that the render uses colored terminal output (to assure some readability).
You can many path to exclude, the paths is raw strings (not Regex) and are only used with the “startswith” method, this means it will only match your paths from the start of urls.
Metadata
Release files for django-urls-map 0.1
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-urls-map-0.1.tar.gz | 4.3 kB | Without provenance | Details for django-urls-map-0.1.tar.gz |
Release files / django-urls-map-0.1.tar.gz
| Download URL | django-urls-map-0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9dcd792bccbd92304eb7423a436cf0da4d0de53b53d1c8cff56c407f6faa68d
|
|
BLAKE2b-256 checksum How to use checksums |
2d0ff9b2e2ffc2a2fcc35dfa626056a47123f6d29fe420c4b49880ab4f529a23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-urls-map 0.1
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.