Traian
Traian

Reputation: 3003

Django Broken INTERNAL link on otherIPAddress

Why do I get "Broken INTERNAL link on xyz", where xyz is NOT the IP address of the server where the website is hosted?

To be more specific: my website address is 'myExample.com' and there is another IP address let's call it 'anotherExample'. I get 'Broken INTERNAL link on anotherExample'. The referrer is 'http://anotherExample/somePHPFile.php' and the Requested URL is of course '/somePHPFile.php'.

Upvotes: 4

Views: 1165

Answers (1)

Álvaro Justen
Álvaro Justen

Reputation: 2062

You probably have the middleware django.middleware.common.BrokenLinkEmailsMiddleware enabled. According to Django docs it sends broken link notification emails to MANAGERS.

Solution: just remove the BrokenLinkEmailsMiddleware item from MIDDLEWARES in your settings.py.

Upvotes: 7

Related Questions