Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8109583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:28:13+00:00 2026-06-06T01:28:13+00:00

I am trying to use python shopify api with OAuth2 and working through the

  • 0

I am trying to use python shopify api with OAuth2 and working through the api, and
am trying to move the the django auth sample over to oauth rather than legacy (and not use django, I am just targetting webapp2 on appengine for a much simpler example. 😉

I am running into a problem where after getting a session shopify_session.shop() is called in my handler and I am getting a NameError: “global name ‘Shop’ is not defined”.

Looking at the current code the implementation for this method is (at line 59)

def shop(self):
    Shop.current()

but I can’t see how the class Shop could possibly accessible. the class Shop is defined in resources.py and isn’t imported anywhere in session.py. Is this a bug in the api code, or is some magic supposed to going on or some other sort of setup run to inject that class into the session module.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:28:14+00:00Added an answer on June 6, 2026 at 1:28 am

    Oops, that method has improperly ported from the ruby shopify_api library. I decided to just remove it entirely, since it was already broken, therefore no apps must depend on it working, and even in the ruby library it isn’t really using the session instance. The only way it would make sense would be if it temporarily activated the session then retrieved the current shop.

    The shopify_django_app example app is now updated with Oauth2 support, although the instructions and zip file for django on App Engine still need to be updated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Python (through Django framework) to make a Linux command
I'm trying to use Python 2.7 regex's to retrieve data from sample web pages
I'm developing a Django app, and I'm trying to use Python's logging module for
I'm trying to use python to parse a log file and match 4 pieces
I am trying to use Python's ElementTree to generate an XHTML file. However, the
I am trying to use Python to resize picture. With my camera, files are
I'm trying to use Python to run pdftotext, but for some reason, my code
I am trying to use python socket instead of netcat to send metric data
I am trying to use python's telnetlib module to get information from a remote
I am getting some unexpected results when trying to use Python Omni Completion on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.