I would like to make a link that would take the user to a particular item in the admin site (assuming they have the correct permissions).
Something like: https://mysite/admin/app/model/id/
Can this be done with reverse?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get the url in the view, using
reverse,Or in the template, using the url tag
or
Note the above url tag syntax is for Django >= 1.5.
For more information, see the Django docs on reversing admin urls.