> Lets say I have shipping app called Shipping which is used for ups and
> fedex.
> I want just using settings.py to enable/disable them.
> 
> The structure could be:
> project
>          shipping
>                     modules
>                           ups
>                           fedex
> 
> And by putting in settings.py I could manage those modules
> INSTALLED_APPS = (
>   ....
>   'shipping.modules.ups',
>   'shipping.modules.fedex',
>   ....
> )
> 
> So what is the best way to have pluggable modules in app ?

Because Django doesn't have kind of "startup" point, most probably same way as 
admin registrations are handled.

Toplevel urls.py works quite well, just like django admin does.

Then you just need to ways to register your apps in centralized manner and 
you're good to go, specially if your apps need to contribute to ui. 

Note that  appname is only last part of python namespace and it must be unique 
within one django project. For example you can't have "shipping.modules.ups" 
and "invoicing.modules.ups" due the limitations of Django itself.

-- 

Jani Tiainen

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