Argument passing between views

31 views
Skip to first unread message

SAHIL SHEKHAWAT

unread,
Feb 2, 2014, 4:11:32 AM2/2/14
to django...@googlegroups.com
I have a variable generated in a view  and i want to pass it as an argument to another view.
Both views have their urls so, i can't use GET request.
I want to create invisible fields and pass it using POST request.
Also, i am using this on google app engine so i want to avoid using databases
can anyone help me how can i do that?
sorry, if this is a very basic question but i have tried many ways!

Bill Freeman

unread,
Feb 2, 2014, 2:12:03 PM2/2/14
to django-users
Read up on the session object.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2d0af83c-5402-43b1-aca1-18a216cdf963%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Daniel Roseman

unread,
Feb 2, 2014, 3:03:44 PM2/2/14
to django...@googlegroups.com
I must say I don't really understand this question. If you're passing a parameter to the second view, it must be expecting the parameter anyway, so why can't you put it in the URL? And even if it's not in the main part of the URL, you can still pass GET parameters (the bits after the ?) without changing the urlconf, and access them in the view via `request.GET` - no need for a POST. And finally, GAE includes a datastore so there's no need to avoid accessing it.
--
DR.
Reply all
Reply to author
Forward
0 new messages