Re: urls stumping me

2008-04-29 Thread Peter of the Norse
That's totally it. The reverse function is fairly stupid (for speed), and it always goes for the first match. You've got two URLS with the same view. That's when it's time for: http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns > No, I don't think thats it. Like I

Re: urls stumping me

2008-04-18 Thread jeffself
No, I don't think thats it. Like I said, if I reverse the elections and precincts url in the urls.py file (the main one), it happens exactly opposite. Whichever one is listed first in the urls.py file works, while the other one doesn't. On Apr 18, 9:05 pm, blis102 <[EMAIL PROTECTED]> wrote: > P

Re: urls stumping me

2008-04-18 Thread blis102
Possibly what you have set for get_absolute_url in your models.py file? On Apr 18, 1:14 pm, jeffself <[EMAIL PROTECTED]> wrote: > My project contains two apps, elections and precincts. My main > urls.py file looks like this: > > from django.conf.urls.defaults import * > > urlpatterns = patterns(

urls stumping me

2008-04-18 Thread jeffself
My project contains two apps, elections and precincts. My main urls.py file looks like this: from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^precincts/', include('precincts.urls')), (r'^elections/', include('elections.urls')), (r'^admin/', include('django.cont