It is a simple django to display news
- Clone app
git clone https://github.com/thanhtungka91/ReachLocal.git
- Run app (please install python, Virtualenv)
https://virtualenv.pypa.io/en/stable/
install package (note the main packages)
- python > 2.7
- Django > 1.1
pip install requirement.txt
- Start App
python manage.py runserverThen visit http://127.0.0.1:8000/articles/ to see the page
This app is using sqlite3 for store the data
-
creat the migration sql
python manage.py makemigrations articles -
mirgate db
python manage.py migrate -
add newsapi to .env file
NEWSAPIKEY="xxxx"
click on the tab at the top for crawl data at the first time, next for the update.