Do you know for certain that indata contains a value before you try the objects.get()?
If you are getting an error like "no value found," it sounds like you might not. If you're getting something like "no such object," then it would be a different problem. Is the field "word" in your model a unique value? Also, does your regex match the value for indata? Maybe there are punctuation marks that don't match \w. Also, once you've confirmed that indata contains a value, dump its type and value to the screen with the logging module or a print statement, and see if it looks like the kind of data your database should be expecting. If you don't get it to work, please post sample values for "word" in the database and sample values for "indata," including a couple of URL strings. Shawn --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---