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 6718089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:55:43+00:00 2026-05-26T08:55:43+00:00

We have an application running built on python/django. I get emails whenever there is

  • 0

We have an application running built on python/django. I get emails whenever there is a missing link (404) or a server error (500). I’ve noticed that i get a number of links that looks something like this:

Referrer: http://www.mywebsite.com/model/
Requested URL: /model/js/modernizr-1.7.min.cb14102011.js
User agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
IP address: 41.2.246.84

The issue is the requested url. It requests the js file relative to the current dir, rather than the absolute dir. What makes it bizarre is that I can’t reproduce it, and it happens a handful of times a day, even though there are many different users on the site. The consequence of the missing links also sometimes causes 500 errors, depending on the url (due to the django url structure I’ve defined for the application).

Has anybody seen this kind of issue before? Is there anything that I should check for that might resolve this issue?

Edit:
The js files are accessed through http://www.mywebsite.com/static/js/ The same configuration applies for css files. On further investigation it seems that the ‘static’ part gets dropped from the url.

Edit (2)
I made a mistake yesterday. not only does the {{ STATIC_URL }} not pull through as defined in the settings file, it is replaced with the current (relative) url. I.e, in the original post “model” should be “static”, but its not replaced as such. I’m still at a loss as to why this happens.

  • 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-26T08:55:43+00:00Added an answer on May 26, 2026 at 8:55 am

    Thanks Dennis and Jordan. Your comments helped me a lot.

    For my scenario I noticed the problems only happens on 1 url. Since many of the templates use the same base template. I ruled out a base template problem. I also checked the views of the url to see that the context was added correctly (since without context the STATIC_URL variable might not pull through). All good.

    I also only saw IE7 in the logs. When I looked at the template I noticed an extra closing ” (ie class=”bogus”” ). I think that extra quote messed up the template, and IE7 then had trouble rendering the rest of the template.

    I’ve made the changes in production so am not 100% sure that I’ve fixed the problem, but I’ll know within a day or so.

    Edit:
    The answer, I’ve realised, lies in the fact that if there is a coding problem (ie the server throws a 500), then the context doesn’t get loaded correctly, and so the STATIC_URL doesn’t get populated. This also means that each 500 error will have a corresponding 404 error for any files loaded from STATIC_URL

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

Sidebar

Related Questions

I have an application running on Websphere Application Server 6.0 and it crashes nearly
I have an application running on a Windows Server 2008, that is processing uploaded
Here is the scenerio: We have an application running on Webphere Portal Server 6.1
I have a rails application running on a Linux server. I would like to
Using Visual Studio, I have built an C++ application running in 32bit. It will
I have an application running in tomcat that has a bunch of configuration files
I have an application running only on Windows and a batch file that launches
I have an application running on multiple IIS servers that need to parse a
I have an application running under WebLogic that is using standard forms authentication. The
We have an application running on a loadbalanced environment, let say webserver A and

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.