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
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
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(
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
4 matches
Mail list logo