Skip to main content

A Django app to integrate client side javascript logging with JSNLog.

Project description

https://badge.fury.io/py/django-jsnlog.svg https://travis-ci.com/oruehenbeck/django-jsnlog.svg?branch=master

A django integration for client side logging for javascript with JSNLog https://jsnlog.com/.

Documentation

The full documentation is at https://django-jsnlog.readthedocs.io.

Quickstart

Install django-jsnlog:

pip install django-jsnlog

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'jsnlog',
    ...
)

Add django-jsnlog’s URL patterns:

urlpatterns += [
    path(r'jsnlog.logger', include('jsnlog.urls')),
]

Add django-jsnlog’s javascript files to your template:

...
<script type="text/javascript" src="{% static 'jsnlog/js/jsnlog.min.js' %}"></script>
<script type="text/javascript" src="{% static 'jsnlog/js/django-jsnlog.js' %}"></script>
...

Credits

Tools used in rendering this package:

History

0.1.0 (2021-04-14)

  • First release on PyPI.

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-jsnlog-0.1.0.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

django_jsnlog-0.1.0-py2.py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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