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

  • SEARCH
  • Home
  • 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 475883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:25:59+00:00 2026-05-13T00:25:59+00:00

I am using the latest checkout of the django trunk – when I am

  • 0

I am using the latest checkout of the django trunk – when I am in the admin on the “change” page for an object/item, there is a nice little link that says “view on site”.

The link points to a url such as:

http://example.com:8888/admin/r/22/15/

However, when I click on that link (or enter that link into my browser) I get redirected to:

http://example.com:8888//example.com:8888/video/15

Which isn’t a valid url – but it’s really, really close … the same is happening when I try to get_absolute_url for a comment. I get the short little redirect but it doesn’t take me to the right page.

Any ideas why this is happening?

Additional Info (edit):

  • have tried with 1.1.1 (same problem)
  • I have one site listed under sites which is ‘http://example.com:8888‘

I thought maybe it had to do with the port number at the end – but what is strange is the my object’s get_absolute_url works without a hitch.

I think the problem is coming from django.contrib.contenttypes.views.shortcut which is doing some funny appending business to handle cross-site things … which I don’t quite understand.

get_absolute_url (for objects)

@models.permalink
def get_absolute_url(self):
    return ('video_detail', [str(self.id)])
  • 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-13T00:26:00+00:00Added an answer on May 13, 2026 at 12:26 am

    I figured it out: my site’s ‘domain name’ was listed as:

    http://example.com

    But the ‘http’ is what is throwing it off. When I removed it and just listed it as:

    example.com

    It works. I just have to update my email templates to include the ‘http’, I think … unless django comes with a built in for adding that in its sites package. Off to investigate …

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

Sidebar

Related Questions

I want to checkout, and then update as necessary, the Django Subversion trunk on
I am using latest Pyramid to build a web app. Somehow we have started
I'm using latest MVC4-RC (.net 4.0) with Microsoft ASP.NET Web Optimization Framework http://nuget.org/packages/Microsoft.AspNet.Web.Optimization/1.0.0-beta3 and
I am using latest Google IMA SDK for video ads, in that the flash
Does anybody using latest enterprise library 4.1 in mono? I used mono migration analyzer
Currently I'm building an application using latest Prism for Silverlight 4. I've a module
Using the latest version of Resharper (4.5.x) with VS2008. Every now and then (pretty
I'm using the latest version of the jquery plugin DataTables and I tried to
I am using jQuery(Latest release) and have a function called calculate() which gets called
I am using the latest NHibernate 2.1.0Beta2. I'm trying to unit test with SQLite

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.