koleror / django-admin-views

Easily link custom admin views and direct URLs into the Django admin
BSD 3-Clause "New" or "Revised" License
187 stars 33 forks source link

Admin URL hardcoded? #3

Closed jluttine closed 10 years ago

jluttine commented 11 years ago

I'm not sure but it seems to me that the admin URL is hardcoded somehow incorrectly.

My Django-site has an URL similar to the following: http://domain.com/site-directory/

Normal admin pages work properly under: http://domain.com/site-directory/admin/

However, the views that I have added using django-admin-views try to use http://domain.com/admin/applabel/modlabel/myview/ which obviously does not work because it is not under site-directory.

Am I possibly doing something wrong or is this a bug?

jluttine commented 11 years ago

I fixed it for my personal use using this commit: https://github.com/jluttine/django-admin-views/commit/45832eb2601eb79ce1de84f95286c3dbd3d40560

Not sure if that's a good solution in general..

frankwiles commented 10 years ago

Fixed in https://github.com/frankwiles/django-admin-views/pull/4