Hello,

I am trying to generate models at runtime. For this purpose I am using
the method create_model() provided at
http://code.djangoproject.com/wiki/DynamicModels

create_model(name, fields, module='app.models' )

When I am doing like this i get a keyError '__module__'

then I tried to pass the whole path:

create_model(name, fields, module='project.src.app.models' )

Still got an keyError, but this time it looked like this: keyError
'project.src.app.models'

Any ideas what I am doing wrong.
Thanks, Toni
--~--~---------~--~----~------------~-------~--~----~
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