independed urls.py file

On Sat, Jun 12, 2010 at 10:45 AM, HARRY POTTRER <cp368...@ohio.edu> wrote:

> On Jun 4, 4:10 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> > On Jun 4, 5:06 am, HARRY POTTRER <cp368...@ohio.edu> wrote:
> >
> > > I'm writing a forum app that I want to be reusable. All of my urls I
> > > have named. Some of them are named like "index" and "thread" which are
> > > generic and will likely collide with existing project's urls. I don't
> > > want to do something like name all my urls "forum_index" and
> > > "forum_thread" either.
> >
> > > I think the best way is to use the newnamespacefeature, but I'm not
> > > quite sure how to do it for reusuable apps. The docs make it seem like
> > > the only purpose ofnamespaceurls is when you have two or more
> > > instances of an app.
> >
> > You don't need to do anything with it. You don't define thenamespace
> > in the application's urlconf, the end developer does it when they
> > include your application's urlconf in their project-level one. See the
> > docs on defining namespaces:
> http://docs.djangoproject.com/en/1.2/topics/http/urls/#defining-url-n...
> > --
> > DR.
>
> but how do I handle get_absolute_url? I don't see how I'm supposed to
> resolve any urls if I don't supply it with a namespace...
>
> --
> 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