Skip to main content

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/

Release files for django-endpoints 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-endpoints 0.0.3
File Size Uploaded
django_endpoints-0.0.3.tar.gz 42.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-endpoints 0.0.3
File Interpreter ABI Platform
django_endpoints-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 86.5 kB

Release files / django_endpoints-0.0.3.tar.gz

Download URL django_endpoints-0.0.3.tar.gz
Size 42.8 kB
Tags Source
SHA-256 checksum
How to use checksums
19b67e2e66a1ed83d1a223fe1b9fae13f9c0ad6dde7bcdefc15e244d44e568d2
BLAKE2b-256 checksum
How to use checksums
1a741593fcfc7cb4825b384af6f7988e0015ded9ae4e5e51742b88a74f37b36b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.6

Release files / django_endpoints-0.0.3-py3-none-any.whl

Download URL django_endpoints-0.0.3-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4181f065e0ac43cf96a933cd3d55833440fcb7d766da3b22d13f935aa2b4429
BLAKE2b-256 checksum
How to use checksums
edea122ae9fe076c512dd190975243cec551cb388c2e8f37a6e8d5cd7d2a8399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page