Opened 19 years ago

Closed 15 years ago

Last modified 13 years ago

#458 closed defect (wontfix)

"View on site" doesn't link to model's get_absoulte_url() method

Reported by: igor@… Owned by: Adrian Holovaty
Component: contrib.admin Version: 1.1-beta
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

"View on site" button doesn't link to model's get_absolute_url() method, but shows something like '/r/12/1/'. It could be observed on the generic Users model.

Change History (6)

comment:1 by mattycakes@…, 19 years ago

Resolution: wontfix
Status: newclosed

This is not a bug, it's a redirect URL. Put in your main urls.py the line

    (r'^r/', include('django.conf.urls.shortcut')),

And as long as DEBUG is turned *off* in your settings.main you'll be redirected to the correct item.

comment:2 by Adrian Holovaty, 19 years ago

As of [620], the "/r" handler is automatically added to the admin URLconf whenever you do "django-admin startproject".

comment:3 by Christopher Lenz <cmlenz@…>, 19 years ago

This is no longer the case, is it? At least not on the magic-removal branch.

Why isn't this mapping [source:/django/branches/magic-removal/django/contrib/admin/urls.py admin/urls.py] ?

comment:4 by ankit, 15 years ago

milestone: 1.1
Resolution: wontfix
Status: closedreopened
Version: 1.1-beta-1

it is not working.I have done debug=False also

comment:5 by Russell Keith-Magee, 15 years ago

Resolution: wontfix
Status: reopenedclosed

If you are having difficulties, please ask on Django-users, rather than presumptively opening a 4 year old ticket.

comment:6 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top