Need help with shopify_django_app?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

333 Stars 114 Forks MIT License 71 Commits 9 Opened issues


Get a Shopify app up and running with Django and Python Shopify API

Services available


Need anything else?

Contributors list

Shopify Django App Example

This project makes it easy to get a Shopify app up and running with Django and the Python Shopify API.

This project simply displays basic information about the shop's products and orders.

This project has the following structure -

an app which handles authentication (meant to be reusable) -
an app which contains the example code to demonstrate how to use the API (meant to be modified or replaced to create your Shopify App). -
project files for serving this app.

Get It Running

Create Your App Configuration

  • Log in to your partners dashboard
  • Navigate to your apps
  • Click
    Create App
  • Choose a custom app or public app
  • Fill in the app name
  • Set the Application Url http://localhost:8000/
  • Set Whitelisted redirection URL( http://localhost:8000/shopify/finalize/

You will then have access to your API key and API secret KEY, you will need these for the next steps.

Setup Environment

  1. Copy over the

    file into a
    file and fill out the
    cp .env.local .env
  2. Generate a secret key and add it to

    by running the following in the command line:
python -c 'import random; print("".join([random.choice("[email protected]#$%^&*(-_=+)") for i in range(50)]))' >> .env

For PC Users: Run this command in GIT Bash or Windows Subsystem For Linux. Alternatively, you can generate a secret key using the Python interpreter. This requires you to manually add the Django secret key to your

file by doing the following:

Open the python interpreter:

Inside the python interpreter, generate the secret key, copy it, and exit: ```python

import random print("".join([random.choice("[email protected]#$%^&*(-_=+)") for i in range(50)])) exit() ```

  1. [Optional] you can add the api version and api scopes environment variables to the
    default is
    a comma-separated list of scopes, default is

Run the App

We use pipenv to get running faster. With the

already created in the root directory, run the app:
pipenv install
pipenv run python migrate
pipenv run python runserver

Open http://localhost:8000 in your browser to view the example.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.