In Django key:value are sent the way you specify in your urls configuration. E.g., say that you want to show an object that you can extract from your DB with year=2013 and month=09 ('year' and 'month' are here a primary key for that model if used together). The URL schema is completely up to you, so you could implement the following solutions
basepath/2013/09/ basepath/2013_09/ basepath/?year=2013&month=09 etc, etc You have just to implement the correct regular expressions in your URL specification. (I would strongly adverse the second and the third example, I used them only to exemplify what you can do). This is what happens with standard GET requests in your views. POST requests follow the same schema, but they encompass the form data in the POST section of the HTTP request (that is available through self.request.POST in your view). So the problem you have to figure now is: what is jQuery.ajax() doing? Sorry but I do not know jQuery AJAX, so I cannot help you on this topic. Reading the documentation I understand that it is issuing a GET on "/pi/?pathID=somevalue", so I would implement an URL pattern and a view to catch this request. Let me know what happens. Regards Leo Leonardo Giordani Author of The Digital Cat <http://lgiordani.github.com> My profile on About.me <http://about.me/leonardo.giordani> - My GitHub page<https://github.com/lgiordani>- My Coderwall profile <https://coderwall.com/lgiordani> 2013/9/18 <7equivale...@gmail.com> > "So I think that the ajax() function is calling the URL > "/pi/?pathID=somevalue," Is that different than how a key:value pair are > normally sent? I don't know much about this. > This is the output from the development server... > > "GET /pi/ HTTP/1.1" 200 2600 > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.