Daniel, thanks for the response

I'm on the latest svn version

d...@django$ svn up
At revision 9803.

so my version shouldn't be the issue.


On Feb 2, 1:44 am, Daniel Roseman <roseman.dan...@googlemail.com>
wrote:
> On Feb 1, 10:11 pm, Dave Fowler <davefow...@gmail.com> wrote:
>
>
>
> > I'm adding new views to my admin models.  The documentation is 
> > here:http://docs.djangoproject.com/en/dev/ref/contrib/admin/#get-urls-self
>
> > and the following is my implementation ( I think the same thing )
>
> > from django.conf.urls.defaults import *
>
> > class AisleAdmin(admin.ModelAdmin):
> >     def get_urls(self):
> >         urls = super(AisleAdmin, self).get_urls()
> >         my_urls = patterns('',
> >             (r'^reorders/$', 'path.to.view', )
> >         )
> >         return my_urls + urls
>
> > The base url for the Aisle admin is /grocery/aisle/    so I assume
> > that my new view would be at /grocery/aisle/reorders/
>
> > Its not however, I instead get this:   invalid literal for int() with
> > base 10: 'reorders'
>
> > I put prints inside the get_urls function to see if its getting there,
> > and it isn't.  I'm on the latest svn version.
>
> > What am I missing?  Any help would be great.
>
> I believe that functionality is only available on the development
> version of Django. Are you running a checkout after version 1.02, or
> the released version?
>
> For some reason the 'new in development version' tag is missing from
> the documentation you link to there.
> --
> DR.
--~--~---------~--~----~------------~-------~--~----~
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 
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