Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 214029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:20:07+00:00 2026-05-11T18:20:07+00:00

Before Django 1.0 there was an easy way to get the admin url of

  • 0

Before Django 1.0 there was an easy way to get the admin url of an object, and I had written a small filter that I’d use like this: <a href="{{ object|admin_url }}" .... > ... </a>

Basically I was using the url reverse function with the view name being 'django.contrib.admin.views.main.change_stage'

reverse( 'django.contrib.admin.views.main.change_stage', args=[app_label, model_name, object_id] )

to get the url.

As you might have guessed, I’m trying to update to the latest version of Django, and this is one of the obstacles I came across, that method for getting the admin url doesn’t work anymore.

How can I do this in django 1.0? (or 1.1 for that matter, as I’m trying to update to the latest version in the svn).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:20:07+00:00Added an answer on May 11, 2026 at 6:20 pm

    I had a similar issue where I would try to call reverse('admin_index') and was constantly getting django.core.urlresolvers.NoReverseMatch errors.

    Turns out I had the old format admin urls in my urls.py file.

    I had this in my urlpatterns:

    (r'^admin/(.*)', admin.site.root),
    

    which gets the admin screens working but is the deprecated way of doing it. I needed to change it to this:

    (r'^admin/', include(admin.site.urls) ),
    

    Once I did that, all the goodness that was promised in the Reversing Admin URLs docs started working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to detect unused templates in a Django project? Before Django
I know that there are hundreds of pages written on Django v Rails, but
edit: I wasn't clear before, I am saving my object in the django admin
I have a Django form that needs to do some client-side validation before submitting
Is there an easy way to allow for required profile fields? I am using
I've got a Django-based site that allows users to register (but requires an admin
My django site was functioning before I installed Lion and had to reinstall everything
If a django model is made abstract, like below, is there a way to
I posted this question on the django-users list, but haven't had a reply there
Is there an existing django template tag to determine a/an before an article? If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.