Skip to main content

A Django app to private security.txt details

Project description

https://securitytxt.org/ A proposed standard which allows websites to define security policies.

based on: https://adamj.eu/tech/2020/06/28/how-to-add-a-well-known-url-to-your-django-site/

Quick start

  1. Add “polls” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'wellknown_security',
    ]
    
  2. Include the polls URLconf in your project urls.py like this:

    from django.conf.urls import include
    ...
    path('.well-known/', include('wellknown_security.urls')),
    
  3. Add at least the contact info to settings.py

    WELLKNOWN_SECURITY_CONTACT = “contact@tld

  4. Start the development server and visit http://127.0.0.1:8000/.well-known/security.txt to check the results

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-wellknown-security, version 0.11
Filename, size File type Python version Upload date Hashes
Filename, size django-wellknown-security-0.11.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page