1. (r'^admin/', admin.site.root)
2. (r'^admin/(.*)', admin.site.root)

If you type in browser
/admin/xx/ with 1, you will get the below error:

root() takes exactly 3 arguments (2 given)

So, use 2.

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer