Skip to content

Config vars in settings.py

Juan Manuel García edited this page Jan 3, 2014 · 5 revisions

Some variables can be configured via the settings.py file. Here there is a list of them for public and private apps.

For public apps:

  • OAUTH_REDIRECT_URL is the redirect url after the oauth authentiication. By default it points to /.
  • BILLING_REDIRECT_URL is the redirect url after user confirms the payment on the billing confirmation screen of shopify. By default it points to /.
  • PUBLIC_APP is a boolean flag to indicate the app is public. This is automatically generated when you create a public app. Read more about how to create a django-shopify public app.
  • HOST is the host address of your app. By default it points to http://127.0.0.1:8000 (Default django server host and port).
  • SHOPIFY_API_KEY is the api key provided by shopify when you create the app.
  • SHOPIFY_API_SECRET is the api secret provided by shopify when you create the app.
  • SHOPIFY_API_SCOPE is the scope of permissions your app is going to use. For example: SHOPIFY_API_SCOPE = ["read_orders"].

For private apps:

  • SHOPIFY_API_KEY is the api key provided by shopify when you create the app.
  • SHOPIFY_API_SECRET is the api secret provided by shopify when you create the app.
  • SHOPIFY_API_PASSWORD is the api password provided by shopify when you create the app.
  • SHOPIFY_HOST is your shopify domain. (*.myshopify.com).