Kindly please give me your enlightment to CRUD Django database using
HTTP-GET.
For the sake of simplicity, I use basic django example from
https://docs.djangoproject.com/en/1.2//intro/tutorial02/
I didn't add any fancy things.
My admin.py as simple as :
-----START---
from polls.models import Poll, Choice
from django.contrib import admin
admin.site.register(Poll)
admin.site.register(Choice)
-----STOP----
Currently, I can add records to Poll and Choice from web interface after
login.
What I have to write so that I can add another Records to "Choice" using
simple http get , i.e :
http://127.0.0.1:8000/admin/poll/choice/add/?username=bino&password=123&poll=1&choice=iam+trying
I need this because I plan to post Kannel dlr to django, and AFAIK
kannel do this by using singleshoot of GET so it can not deal with
default Django Authentication mechanism.
Sincerely
-bino-
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment