Answers for "how to pass extra data to function in views.py in django"

1

how to pass data between views django

def update_project_filter(request):
    ...
    selected_project_id = project_form.cleaned_data["Project_Name"].id
    request.session['selected_project_id'] = selected_project_id
    ...

def update_project(request):
    ...
    selected_project_id = request.session.get('selected_project_id')
    ...
Posted by: Guest on November-08-2020

Code answers related to "how to pass extra data to function in views.py in django"

Python Answers by Framework

Browse Popular Code Answers by Language