#19002: Hardcoded url in admin
------------------------------------+--------------------------------------
     Reporter:  riccardodivirgilio  |                    Owner:  nobody
         Type:  Uncategorized       |                   Status:  closed
    Component:  contrib.admin       |                  Version:  1.4
     Severity:  Normal              |               Resolution:  needsinfo
     Keywords:                      |             Triage Stage:  Unreviewed
    Has patch:  0                   |      Needs documentation:  0
  Needs tests:  0                   |  Patch needs improvement:  0
Easy pickings:  0                   |                    UI/UX:  0
------------------------------------+--------------------------------------
Changes (by ramiro):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 What do you mean with ''"the link do not works at all"''? Where do these
 URLs point to? What do you mean with ''"I've got multiple admin sites with
 different names"''? Are they AdminSite instances?

 Referencing the admin docs
 (https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#multiple-admin-
 sites-in-the-same-urlconf) and the namespaced URLs docs
 (https://docs.djangoproject.com/en/1.4/topics/http/urls/#defining-url-
 namespaces and https://docs.djangoproject.com/en/1.4/topics/http/urls
 /#url-namespaces) all the admin app instances share the same application
 namespace (`'admin'`) and what allows to differenciates among their URL
 namespaces when reversin named URLs with reverse() (or equivalente ''url''
 template tag) is the value of the ''current_app'' argument.

 In the case of the admin app it's the ``AdminSite.name`` value which is
 the one you can control and which is the one we are passed as
 ''current_app'' in all calls to reverse().

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19002#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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 https://groups.google.com/groups/opt_out.


Reply via email to