how to pass data between views django

Solutions on MaxInterview for how to pass data between views django by the best coders in the world

showing results for - "how to pass data between views django"
Leah
29 Aug 2019
1def update_project_filter(request):
2    ...
3    selected_project_id = project_form.cleaned_data["Project_Name"].id
4    request.session['selected_project_id'] = selected_project_id
5    ...
6
7def update_project(request):
8    ...
9    selected_project_id = request.session.get('selected_project_id')
10    ...
11