Package to display all URLs of a Django application
Project description
Django Endpoints
Django Endpoints is a small Django application that displays your project's URLs, grouping them by applications.
Sometimes I use this in different projects, so I decided to put it on pypi
Installation
pip install django-endpoints
Settings
-
Add the application to the project.
INSTALLED_APPS = [ #... 'endpoints', ]
-
In
settings.py
set the params# required * URL to which unauthenticated or non-staff users will be redirected (is_staff=False). EP_NOT_AUTH_REDIRECT_URL = '/admin/login/?next=/endpoints/' # A tuple of application names that you want to exclude from the list of URLs to display. EP_EXCLUDED_APPS = ( 'logui', 'swagger', 'rest_framework', ) # Section with custom links EP_CUSTOM_LINKS = [ {'name': 'Logs', 'url': 'https://xxx.xxx/logs/'}, {'name': 'Nginx', 'url': 'http://42.33.125.119:81/'}, {'name': 'Swagger', 'url': 'https://xxx.xxx/swagger/'}, {'name': 'Minio', 'url': 'https://minio.xxx.xxx/'}, {'name': 'Pg Admin', 'url': 'https://pgadmin.xxx.xxx/'}, {'name': 'Flower', 'url': 'https://flower.xxx.xxx/'}, ]
-
Add routes
Only
is_staff
have access.from django.urls import path, include urlpatterns = [ #... path('endpoints/', include('endpoints.urls')), ]
-
Open https://localhost:8000/endpoints/
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
django_endpoints-0.0.2.tar.gz
(42.2 kB
view details)
Built Distribution
File details
Details for the file django_endpoints-0.0.2.tar.gz
.
File metadata
- Download URL: django_endpoints-0.0.2.tar.gz
- Upload date:
- Size: 42.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fe2e4754b466fb443614b1bc9753fce4fac6d4fbf8e664ceb82466c93ecdecb |
|
MD5 | 64bf15003ca827666e71054219d06238 |
|
BLAKE2b-256 | 1d5701b73a40b54e54507dd1111bde891cbcfed917486755c6dc18875d903e22 |
File details
Details for the file django_endpoints-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_endpoints-0.0.2-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a69ed03a7c7fbb891d5fa384592881ed2ddd248fa3d8203b0a5bc409682a1f7 |
|
MD5 | 28443f75de482d1bd22d21c4d18fd3c7 |
|
BLAKE2b-256 | c86450af8442d87039d8a0bf90f4a46eede0a07c83d2a518ddf41781f059269b |