Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(2)  |  Derive(0)  |  Import(4)

src/d/j/django-passbook-0.1.0dev/django_passbook/views.py   django-passbook(Download)
import json
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import condition
from django_passbook.models import Pass, Registration, Log
            return HttpResponse(status=200)
        body = json.loads(request.body)
        new_registration = Registration(device_library_identifier=device_library_id,
                                        push_token=body['pushToken'],
                                        pazz=pazz)

src/d/j/django-passbook-HEAD/django_passbook/views.py   django-passbook(Download)
import json
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import condition
from django_passbook.models import Pass, Registration, Log
        body = json.loads(request.body)
        new_registration = Registration(
            device_library_identifier=device_library_id,
            push_token=body['pushToken'],
            pazz=pass_)

src/d/j/django-passbook-0.1.0dev/django_passbook/admin.py   django-passbook(Download)
from django.contrib import admin
from django_passbook.models import Pass, Registration, Log
 
admin.site.register(Pass)
admin.site.register(Registration)

src/d/j/django-passbook-HEAD/django_passbook/admin.py   django-passbook(Download)
from django.contrib import admin
from django_passbook.models import Pass, Registration, Log
from django_passbook import settings
from apns import APNs, Payload