MUONIC_DJANGO
Muonic-Django is a consumer to be used with the muonic library for integration with the Django web framework.
Quick start
Install muonic_django like this:
conda install muonic_django -c phyz777
Include the muonic_django URLconf in your project urls.py like this:
url(r'^api/muonic/', include('muonic_django.urls')),
Run python manage.py migrate (or muonic_webapp migrate, when using the muonic_webapp package) to create the models.
Set os.environ.setdefault("DJANGO_SETTINGS_MODULE", "your.django-project.settings") in your muonic script.
Add an instance of muonic_django.consumer.Consumer to your muonic consumers list.
Start a measurement
Visit http://your-project.url/api/muonic to get your json formatted data (needs rest_framework)