Skip to main content

Apple Wallet integration for a django project

Project description


Apple Wallet integration for a django a project

Getting Started

To get started you should copy the 'wallets' folder to the your project directory

git clone
cp -r django-wallets/wallets your-project-directory


If you want to make asynchronous pushes to users when their passes are updated you should install celery

pip install celery 


After you copied the app to your project directory, you should do the following steps

Add the app to your project settings

# Wallets management

Define the model with your Pass from PassAbstract and add fields you need

from wallets.models import PassAbstract    
class Pass(PassAbstract):  
    The pass model for Apple Wallet 
discount_card = models.ForeignKey(  
    verbose_name=_('Discount card')  

Add the necessary constants

WALLET_CERTIFICATE_PATH = 'path-to-certificate-pem-file'
WALLET_KEY_PATH = 'path-to-key-certificate-pem-file'
WALLET_WWDR_PATH = 'path-to-wwdr-certificate-pem-file'
WALLET_PASS_PATH = os.path.join(
WALLET_TEAM_IDENTIFIER = 'your-team-identifier'
WALLET_ORGANIZATION_NAME = 'organization-name'
WALLET_APN_HOST = ('', 2195)
WALLET_ANDROID_API_KEY = 'get-it-in-the-official-site'
WALLET_PASSWORD = 'certificate-key-passowrd'
WALLET_ENABLE_NOTIFICATIONS = False  # True if you want to send notifications (Celery needed for it)
PASS_MODEL = 'your_app.your_model'

Make migrations for your model and the wallets app and migrate them

python makemigrations
python migrate


This project is licensed under the MIT License - see the LICENSE.txt file for details

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-wallet, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size django-wallet-0.3.tar.gz (9.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page