Skip to main content

A Django-based library for rendering XML responses with XSLT support

Project description

pip install django-xml-view

Usage

  1. Add xml_renderer to your INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        # Other apps
        'xml_renderer',
    ]
    
  2. Use the render_xml function in your views:

    from xml_renderer.xmlrenderer import render_xml
    
    def home(req):
        xslt_url = static('style.xsl')
        return render_xml(req, "home.xml", {'xslt': xslt_url})
    

License

This project is licensed under the MIT License.

Project details


Download files

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

Source Distribution

django_xml_view-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_xml_view-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file django_xml_view-0.1.0.tar.gz.

File metadata

  • Download URL: django_xml_view-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for django_xml_view-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b774f1aabde9dcd8fbbbdd7c390cbde761ee3f98eae64ca5747baee95b4550d1
MD5 6716ed8e46012f4f2eb3ac2eea52d141
BLAKE2b-256 facce20938011a86a48e05c2fe822fcb0b17b6fe56b376bbf067dc02b6fd5563

See more details on using hashes here.

File details

Details for the file django_xml_view-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_xml_view-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed5935c4c729a5686f039bd529fe3d6e1c0ca7e873dfadfa7d4c6c40377d8128
MD5 d8626dd0e68f68c467d203c93211e4c7
BLAKE2b-256 49e1091f8a6f023a72dfa6223a4a819b48c59013a1b70ca4401abe0b55daa3c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page