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
File details
Details for the file django_shopify_app-1.1.6.tar.gz
.
File metadata
- Download URL: django_shopify_app-1.1.6.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44a4893eb278cf0717a8007653dd1ea5da8b6b7e85d971e09a359c7408b0d003 |
|
MD5 | 9459406310eca1e300da5eeefa2d1a9a |
|
BLAKE2b-256 | 87a45d30cb190bcabfb0709f2a3e86bb2f7cd8aaa89d68feacf621086034bcde |
Provenance
File details
Details for the file django_shopify_app-1.1.6-py3-none-any.whl
.
File metadata
- Download URL: django_shopify_app-1.1.6-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03ea585d97a3063e6341e850f4733f591a54eabb4ccfa235717bd07db03f56c0 |
|
MD5 | e69c7f898933d4bc7dec383e24c9c43b |
|
BLAKE2b-256 | 8e9eee042ced9abbaf017f02015c90bb8237798b89df1a83ee99f8f122eaae92 |