On Fri, Mar 13, 2009 at 7:31 AM, Ravi Kumar <ra2...@gmail.com> wrote:
> I need an architecture in a project using Django and Python + MySQL, so > that when I put a python script in specified directory, that should be > loaded and its methods/functions can be used. > As far as i have thought on this, I am going to scan that particular > directory, list out the files, import them if they exists, > > NOw I need the functions list defined in that module. Is there any way to > get it. I also need to find which class in defined in that python file. > Please suggest me over architectures and best practices. Any suggestion > would be really helpful. > > Thanks > Rav! > > > > I wrote something similar to this a while ago, here: http://github.com/alex/django-plugins/tree/master and while I haven't really maintained the code, nor does it work with the latest version of Django perhaps it will give you an idea of how to approach the problem. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---