I had the same confusion that you seem to have. There is a difference 
between application namespace and instance namespace. Because usually you 
only have one instance of each of the installed apps, you don't need to 
pass `current_app=mycoolappname_instanceX`.

In the case of multiple admin instances, the application namespace (which 
is the argument `app_name` to the constructor of AdminSite, and the 
original topic of this post) will be 'admin' for all of them, thus the 
necessity to differentiate to which instance you wish to reverse a URL name 
by passing 'current_app' to the reverse function. Nonetheless, if none is 
given, the reverse will still work and will default to the first urlconf 
that matches the corresponding application namespace.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/3fa60d60-d9db-40c1-bef9-54b98fbadab2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to