Giter VIP home page Giter VIP logo

django-passbook's Introduction

Passbook

=============== django-passbook

This application implements the specified API for passbook webservices. It handles pass registration, updates and logging. It may be easily plugged to you django application by just adding the installed app and importing the urls. It is based on Apple's specification and Mattt's rails example (https://github.com/mattt/passbook_rails_example)

If you need to create passes (.pkpass files) in python you should check http.//github.com/devartis/passbook.

Requirements

  • Django 1.4

Getting Started

$ pip install django-passbook==0.1.0dev

Add 'django_passbook' to you installed apps in the settings.py file.

To use push notifications you need to specify the path to your certificate and key files in your settings.py file.

PASSBOOK_CERT = '/home/faramendi/my-site/cert.pem'
PASSBOOK_CERT_KEY = '/home/faramendi/my-site/key-nopass.pem'

You should also import the urls in your site urls.

from django_passbook import urls
urlpatterns = patterns('',
    url(r'^api/', include('django_passbook.urls')),

django-passbook signals certain events that might come handy in your application.

from django_passbook.views import pass_registered, pass_unregistered
@receiver(pass_registered)
def pass_registered(sender, **kwargs):
    pass

@receiver(pass_unregistered)
def pass_unregistered(sender, **kwargs):
    pass

Specification

The complete specification can be found in the Passbook Web Service Reference.

Contact

devartis

django-passbook's People

Contributors

arperoni avatar fara avatar gikrauss avatar poligarcia avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.