furby escribió: [...] > admin.site.root() takes 3 arguments: self, request, url. There is no > way to specify arguments in urls.py, so I have no idea how to fix > this. Any help would be appreciated. Thanks. >
Yes there is. You can use regex groups: (r'^admin/(.*)', site1.root), The string that matches .* will be passed as an extra arg. Or named groups: (r'^admin/(?P<url>.*)', site1.root), Additionaly, you can pass extra args: http://www.djangoproject.com/documentation/url_dispatch/#passing-extra-options-to-view-functions Juanjo -- mi blog: http://www.juanjoconti.com.ar --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---