Hello,
I'm new to django and I might have made a simple mistake that I need help with. I'm writing a todo list application using google app engine and I'm having trouble with using the post method. I'm going to post my code below but I can also email it to you as a zip file. Here is my index.html {% extends "base.html" %} {% block content %} <div id="time_mangement_input"> <br> <form action="/addTask/" method="post"> <fieldset> <legend align=center>Add New Task</legend> <label for="txtTaskName">Task Name: </label> <input name="txtTaskName" type="text" id="txtTaskName" /> <label for="chkUrgent">Urgent: </label> <input name="chkUrgent"type="checkbox" id="chkUrgent" /> <label for="chkImportant">Important:</label> <input name="chkUrgent" type="checkbox" id="chkImportant"/><br> <input type="submit" value="Add Task" /> </fieldset> </form> </div> <br> <div id="time_management_output"> <table id="time_management_table"> <tr> <td> </td> <td class="time_management_table_inside"> <img src="static/not_important.jpg" alt="not important" /> </td> <td class="time_management_table_inside"> <img src="static/important.jpg" alt="important" /> </td> </tr> <tr> <td class="time_management_table_inside"> <img src="static/not_urgent.jpg" alt="not urgent" /> </td > <td class="time_management_table_inside"> </td > <td class="time_management_table_inside"> </td> </tr> <tr> <td class="time_management_table_inside"> <img src="static/urgent.jpg" alt="urgent" /> </td> <td class="time_management_table_inside"> </td> <td class="time_management_table_inside"> </td> </tr> </table> </div> {% endblock %} Here is my urls.py file from django.conf.urls.defaults import * urlpatterns = patterns('enjoto.views', (r'^$', 'index'), (r'^addTask/$', 'addTask') ) Here is my views.py file # Create your views here. from django.template.loader import get_template from django.http import HttpResponse from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.http import HttpResponse from google.appengine.api import users from models import Tasks def index(request): return render_to_response('index.html') def addTask(request): UserSignedIn(request) return HttpResponse(request) #task= Tasks(taskName=request.POST['txtTaskName'], important=request.POST['chkImportant'], urgent=request.POST['chkUrgent'] ) #task.put()*/ def UserSignedIn(self): user = users.get_current_user() if not user: return HttpResponseRedirect(users.create_login_url(self.path)) The problem arises with the output when the submit button is clicked. Which is , POST:, COOKIES:{}, META:{'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '16', 'CONTENT_TYPE': 'application/x-www-form- urlencoded', 'CURRENT_VERSION_ID': '1.1', 'GATEWAY_INTERFACE': 'CGI/ 1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/ xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost:8080', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8080/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: 1.9) Gecko/2008052906 Firefox/3.0', 'PATH_INFO': '/addTask/', 'PATH_TRANSLATED': u'D:\\Documents and Settings\\Class2009\\workspace\ \todo-now\\main.py', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'POST', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0', 'TZ': 'UTC', 'USER_EMAIL': '', 'wsgi.errors': ', mode 'w' at 0x00B0F0B0>, 'wsgi.input': , 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': True, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> The output is suppose to the the data in the request.Post. The object does not contain data from my form. Where has that data gone Thank You for all your help. Venkat --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---