Git Product home page Git Product logo

Comments (2)

ecprice avatar ecprice commented on August 10, 2024

I'm a bit confused by your example: if I go to newsdiffs.org and search for www.washingtonpost.com/local/montgomery-county-housing-application-moves-online/2015/08/20/05d93a2a-468f-11e5-846d-02792f854297_story.html
then I do find the article.

There are several possibilities for what the issue might be. For example:

  • It probably doesn't realize that http:// and https:// go to the same site.
  • It's possible that it caches the results; some pages have a 30 minute cache.
  • Note that on /diff/x/y/long-url links, the long-url is just for human readability -- you can change it arbitrarily. So perhaps the link is different.
  • Related to that, you seem to have a space between the http: and the // in your text.

You can also troubleshoot by looking at the database directly. Do something like

newsdiffs/website$ python manage.py shell
[...]
>>> from frontend.models import *
>>> Article.objects.get(url='http://sfgate.com/blah-blah')

to see if the article is in the database.

from newsdiffs.

amandabee avatar amandabee commented on August 10, 2024

Actually ... I somehow introduced the space in views.py and that was the whole problem.

Now I'm embarrassed. But thank you!

from newsdiffs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.