On 4/4/06, oggie rob <[EMAIL PROTECTED]> wrote:
>
> > So we want to think about if the app_pefix can be easily changed or
> > remapped.
>
> Can't you just use "include"?
> urlpatterns = patterns('',
> ('^%s/' % app_prefix, include('app.urls')),
> )
>
> Pretty flexible, pretty simple, and already there!
>
> -rob
No, urlconf just one place, we also have view and template need to
deal with. and how to define app_prefix, in urlconf? or in settings?
Need app_prefix be global visiable?
I remember there is also model need to deal with. So there are four
places need to think about:
1. urlconf
2. view
3. template
4. model
--
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---