A django app with all the tools required to make a Shopify app
Project description
django-shopify-app
Add the app in settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'shopify_app',
'shops',
]
Add the required configurations in settings.py
SHOPIFY_API_KEY = config('SHOPIFY_API_KEY')
SHOPIFY_API_SECRET = config('SHOPIFY_API_SECRET')
SHOPIFY_APP_SCOPES = ['read_products', 'read_orders']
SHOPIFY_APP_HOST = 'https://moship.ngrok.io'
SHOPIFY_SHOP_MODEL = 'shops.Shop'
SHOPIFY_WEBHOOK_HOST = 'https://moship.ngrok.io'
SHOPIFY_WEBHOOK_TOPICS = [
'products/update',
'orders/updated',
'app/uninstalled'
]
SHOPIFY_WEBHOOK_CALLBACK = 'shops.webhooks.webhook_entry'
SHOPIFY_GDPR_WEBHOOK_CALLBACK = 'shops.webhooks.gdpr_webhook_entry'
SHOPIFY_GOOGLE_PUBSUB_PROJECT_ID = config('SHOPIFY_GOOGLE_PUBSUB_PROJECT_ID')
SHOPIFY_GOOGLE_PUBSUB_TOPIC_ID = config('SHOPIFY_GOOGLE_PUBSUB_TOPIC_ID')
SHOPIFY_GOOGLE_PUBSUB_SUB_NAME = config('SHOPIFY_GOOGLE_PUBSUB_SUB_NAME')
SHOPIFY_GOOGLE_PUBSUB_SERVICE_ACCOUNT_STRING = config(
'SHOPIFY_GOOGLE_PUBSUB_SERVICE_ACCOUNT_STRING'
)
SHOPIFY_DEV_SHOPIFY_DOMAIN = None
Create a path to init the access token request and another path to end the token request
from django.urls import path
from shopify_app.views import InitTokenRequestView, EndTokenRequestView
app_name = 'my_shopify_app'
urlpatterns = [
path(
'login-online/',
InitTokenRequestView.as_view(
redirect_path_name='my_shopify_app:end-token-request',
),
),
path(
'confirm/',
EndTokenRequestView.as_view(
redirect_path_name='embed_admin:dashboard',
),
name='end-token-request'
),
]
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
Built Distribution
Close
Hashes for django_shopify_app-1.1.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ee334735ac294a71ccff2682b7ce575f61abb8d69bc1cba3bd9575e523aeef |
|
MD5 | 7204bf3b3fd7052b610bd65ba6757a7c |
|
BLAKE2b-256 | 56d6aa1608c6c5336e0e0653f83c7fd4605a63db1a3139f1b7503851f27938bd |
Close
Hashes for django_shopify_app-1.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73737f57f8ad8b7a14a8323b75a3ab23949b5f64f54244778f5ac21bb400dc52 |
|
MD5 | 155ddd86661ff2fed7b92aa68effef46 |
|
BLAKE2b-256 | 39c5e6d5cd12a27b09e01a167857ba9d70a9c48e292e79669457bf00484c8846 |