Tang,

do you mean :

"How to execute some pieces of code when you launch the "runserver" command
by example" ? If this is what you mean, it's not a easy thing to do right
now. Then only way i found it possible is by using: twod.wsgi

With twod.wsgi you can use the entry points system of python and do, like in
Pylons, an entry defined by Paster "app_factory"

You can see an example there:
http://packages.python.org/twod.wsgi/manual/paste-factory.html#using-custom-factories

mathieu

On Tue, Aug 17, 2010 at 2:45 PM, Emily Rodgers <emily.kate.rodg...@gmail.com
> wrote:

> On Aug 17, 2:26 am, Tang Daogang <daogangt...@gmail.com> wrote:
> > Dear all,
> >
> > Recently, I have developed a plugin system for my app, and I want to
> > register those plugins when my app boot up, this need to execute some
> > user defined codes (functions) in app boot procedure, I don't know
> > where insert my registering codes to, anyone can help?
> >
> > Thank you.
>
> Hi,
>
> I don't know how to help you, but I think it is because you haven't
> explained what you want to do thoroughly enough.
>
> What do you mean by a plugin system, and what do you mean by
> registering them with the app on boot up? Are you talking about
> including another python module in your code? Or perhaps including
> another django app in your code?
>
> Can you give us a bit more information (and maybe examples) of what
> you are trying to do.
>
> Cheers,
> Em
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to