fabio natali wrote:
> This is the urls.py I created: http://dpaste.com/72138/
> It doesn't work though: I get a
> KeyError at /manufacturer
> u'manufacturer'
> when accessing http://localhost:8000/manufacturer
> (manufacturer being one of my model)

KeyError says that it can't find a key 'manufacturer' in dict 
model_classes. This leads me to think that model_classes is empty. It 
can be because my example is creating it by listing you module "models":

     ... for i in dir(models) ...

and I don't see where this "models" is imported. I was a bit sloppy when 
I was writing it and have it omitted. So you should import it. It's simply

     import models

if it's in the same directory as urls.py.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to