This is more of an experiment than anything, but I've got a model as such to store python modules:
class StoredModule(models.Model): name = models.CharField() text = models.TextField() I want to be able to pull one of these and get access to the 'text' field as if it were a module. I can't tell if I need to use compile() or eval() to get at this correctly. Here's what I was hoping for: module = StoredModule.objects.get(id=1) usable_module = compile(module.text) usable_module.some_method() Am I on the right track here? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---