[Fixed]-Passing and using a value from another method

1👍

If is the same author you can save it in a django session in the first function and then use it from the session in the second function.

def get_social_data(request):
    author_name = request.GET.get('author')
    session['author_name'] = author_name
    .....

And in the second function;

def profile_export(request, slug):
    author_name = session['author_name']
👤doru

Leave a comment