Thanks for your reply Malcolm. I really appreciate all of your help.

Based on your advice, I did some testing and added some views that are
under my myapps directory and they immediately worked. Changing to a
view name in any other directory besides where my main app lives seems
to fail. This is something that was working prior to upgrading to
1.0.

Are you sure that nothing has changed regarding how the reverse looks
up URLs due to this: http://code.djangoproject.com/changeset/8760



On Sep 16, 10:45 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-09-16 at 20:06 -0700, brian mckinney wrote:
> > One more question.
>
> > How does reverse decide which directories to look in for the named url
> > match?
>
> > I've got my main app (myapp) in one location and basic apps like a
> > blog installed on elsewhere on my python path. It appears the reverse
> > function keeps trying to look at myapp.blog_index instead of
> > blog.blog_index like it should be.
>
> reverse() doesn't care where things are installed. It walks through your
> URLConf file and looks at all the functions you mention there. It uses
> the "name" parameter, the "string name" of the view and the function
> name if you specify the view via a reference to a Python function
> (rather than a string reference). It does it in that order, so if
> there's a "name=..." bit that clashes with a view function name exactly,
> the "name=..." bit wins. But that's a minor issue.
>
> Note that the error message when nothing is found is a little misleading
> and it's disappointing it wasn't fixed prior to 1.0. The last thing
> tried by the URL resolver is to whack the project name on the front. I
> doubt that is ever really a good idea, since it confuses things by
> trying something that isn't necessarily on the Python path, but it's
> needed to work with the "manage.py" default behaviour, so we're stuck
> with it. But don't be confused by that last error message. It's just the
> last of many things tried.
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to