django-passbook
pypi i django-passbook

django-passbook

Django application with server side implementation for passbook webservices.

by devartis

0.1.0dev (see all)License:Copyright (c) 2012 devartis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
pypi i django-passbook
Readme

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 specificatin 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

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

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

GitHub Stars

60

LAST COMMIT

9yrs ago

MAINTAINERS

1

CONTRIBUTORS

6

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.1.0dev
10yrs ago
No alternatives found
No tutorials found
Add a tutorial