On Mon, Jul 7, 2008 at 6:31 PM, furby <[EMAIL PROTECTED]> wrote:
>
> here's my urls.py:
> *****
>      1 from django.conf.urls.defaults import *
>      2 from django.contrib import admin
>      3 from wizcal.app.models import site1
>      4
>      5 urlpatterns = patterns('',
>      6     # Example:
>      7     # (r'^wizcal/', include('wizcal.foo.urls')),
>      8
>      9     # Uncomment this for admin:
>     10      (r'^admin/.*', site1.root),
>     11 )
> *****
>
> 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.

You want to capture the part of the path that' s "inside" your admin site:

  (r'^admin/(.*)', site1.root)

This way the view gets its three arguments.


Arien

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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