Skip to main content

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'

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


Download files

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

Source Distribution

django_shopify_app-0.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

django_shopify_app-0.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file django_shopify_app-0.0.0.tar.gz.

File metadata

  • Download URL: django_shopify_app-0.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for django_shopify_app-0.0.0.tar.gz
Algorithm Hash digest
SHA256 535679c5326cf6788adcd819582178fe1f142aadf040f71903f77d35064da0e5
MD5 2a412bf3e50085cee8a7ec7de00d4fd8
BLAKE2b-256 1a6bbae127d398d0ec212770d9f5e4df55b1df00806ab580b32025889d977b91

See more details on using hashes here.

Provenance

File details

Details for the file django_shopify_app-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_shopify_app-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f1609c6ef666cb166835517f0ca130b6de5523524fec492e386c7383dcdaab9
MD5 a7b75c5ea7ae38d4ec55faa32abdf43d
BLAKE2b-256 0b6e1d4c5fe98e54f283d4dbbafd5e10f966a2770a5b79dd87dce999a56066ad

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page