On Sep 9, 7:16 pm, Peter Bailey <[EMAIL PROTECTED]> wrote: > Hi all, starting to think there is so much stuff in django and python > that I will never learn it all. I am building a site that used the > admin piece for most of the CRUD and a few other pages for the rest of > my requirements. I link to the admin from my main app page, and would > like to be able to link back the other way. Don't see an obvious way > to do this. Can anyone tell me a easy way to add a hyperlink from the > main admin page to somewhere else outside the admin app. > > Thanks, and sorry for the dumb question. > > Peter
If you define a get_absolute_url() method on your model, you'll get an automatic 'view on site' link from the editing page in the admin which goes to the view defined by that method - see http://docs.djangoproject.com/en/dev/ref/models/instances/#get-absolute-url . Is that what you want? -- DR --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---