> def submit(request, laser_id): > > try: > oLED = IoFLED() > btnSubmit = request.POST['btnSubmit'] > laserid = request.POST['laser_id'] > >
The other poster reminded me, you'll want to remove the laser_id reference in your submit() signature. You aren't capturing the laser_id in your urls.py, even with the changes I suggested. Loading this view as it sits will throw an exception. You appear to be pulling the necessary info from the POST dict, making it even more unnecessary. If you do want to capture the ID as part of the URL, go with what the other poster suggested, but I don't believe that's your intention. -James -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWi5LgqhvHd%2Bzd2-PU379d8mtmqYMCYDRBpB_NrO-Fw5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.