question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use upwork client with Django?

See original GitHub issue

HI

I’m developing the application with Django framework. As you know that Django is not keeping the client instance across request. I can’t find the way to make it work.

def access(request):
    client = upwork.Client(public_key, secret_key)
    url = client.auth.get_authorize_url()
    return HttpResponseRedirect(url)
def authorize(request):
    oauth_verifier = request.GET.get('oauth_verifier')
    oauth_access_token, oauth_access_token_secret = \
        client.auth.get_access_token(oauth_verifier)

Though this is not working because again I need to call the get_authorize_url. I don’t like this behaviour because I wanted to use client instance wherever in the Django environment. Is there any way I can make it work with across request. Like Reddit Praw they have multi instance.

Please point me in the right direction…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
mnovozhylovcommented, Jul 11, 2016

sorry, guys, but I’m closing the thread becayse Django issues / difficulties are not related to this library

0reactions
nishuk0007commented, Jul 12, 2016

yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django Jobs | Upwork™
Browse 478 open jobs and land a remote Django job today. See detailed job requirements, compensation, duration, employer history, & apply today.
Read more >
27 Best Freelance Django Developers For Hire In ... - Upwork
Upwork is the leading online workplace, home to thousands of top-rated Django Developers. It's simple to post your job and get personalized bids, ......
Read more >
Hire the best Django Developers in the United States - Upwork
3. Collaborate easily ... Use Upwork to chat or video call, share files, and track project progress right from the app.
Read more >
John G. - Python Django Vue Devops - Upwork
View John G. profile on Upwork, the world's work marketplace. John has completed 11 jobs and 2 in progress on Upwork. Check out...
Read more >
Amol B. - Python | Django | DRF | Android - Upwork
My name is Amol, and I'm a Full Stack Web and Mobile App Developer Consultant with 7+ years of experience working on scalable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found