Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Querying or: Everything Search

paulahaertel edited this page Jun 29, 2015 · 5 revisions

add new attributes in database

models need to be adapted in the following files:

  • frontend/management/command/scraper.py
  • frontend/migrations/0001_initial.py
  • frontend/migrations/0002_auto__add_field_article_git_dir.py
  • frontend/models.py

write to database

scraper.py -> def update_article(article)

form

get method à la <form method="get" action="{% url 'article_history' %}"> -> verweist auf urls.py: url(r'^article-history/(?P<urlarg>.*)$', 'frontend.views.article_history', name='article_history')

news_site

now: search for article.url and strip to domain in future: field unter article

Clone this wiki locally