Skip to content

A django integration for client side logging for javascript with JSNLog.

License

Notifications You must be signed in to change notification settings

oruehenbeck/django-jsnlog

Repository files navigation

django-jsnlog

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:

About

A django integration for client side logging for javascript with JSNLog.

Resources

License

Stars

Watchers

Forks

Packages

No packages published