A reusable Django app for creating, logging and verifying purchases.
Project description
A reusable Django app for creating, logging and verifying purchases.
Quick start
Install Django Purchase Core & Dependancies:
>>> pip install django-purchase-core
Add “purchase”, “rest_framework’, and “rangefilter” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...,
'rest_framework',
'purchase',
'rangefilter',
...,
]
Add the following to app_config.urls:
from django.conf.urls import url, include
urlpatterns = [
...,
path("api/", include("purchase.urls")),
...,
]
Run Django Commands:
>>> python manage.py makemigrations >>> python manage.py migrate
Configure configuration and credentials for your game in the admin panel.
Add progress level update processing
To handle completed purchase setup receiver to update progress, which will receive “instance”
from django.dispatch import receiver
from purchase.signals import purchase_completed
@receiver(purchase_completed)
def purchase_completed(sender, **kwargs):
purchase = kwargs["instance"]
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-purchase-core-0.2.0.tar.gz
(17.7 kB
view hashes)
Built Distribution
Close
Hashes for django-purchase-core-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e823c7b7680ffc1342c57a785b70489989f3c6980adb8f19365e40d4726e96 |
|
MD5 | e701b302c7dea71ede54b5e6b0227589 |
|
BLAKE2b-256 | 96975e141fab33c24e52a54848f425f982bdd27d179829810807bd76154d05cc |
Close
Hashes for django_purchase_core-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 023aa9be6deda83f9efbcb4f338f8b0aa82d6ac40979fc4bdea4b37a6ca9b82c |
|
MD5 | 495bf10fc2975891193b91f146e8f9f1 |
|
BLAKE2b-256 | b2e2fd93cf87f260d1f91f9c230cce241dd105aead01b3eae06e7e3a90171044 |