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

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=<s>"text/javascript"</s> src=<s>"{% static 'jsnlog/js/jsnlog.min.js' %}"</s>></script>
<script type=<s>"text/javascript"</s> src=<s>"{% static 'jsnlog/js/django-jsnlog.js' %}"</s>></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.2.0.tar.gz (10.1 kB view hashes)

Uploaded source

Built Distribution

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

Uploaded py2 py3

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 NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page