Advanced news reader website using django and celery.
git clone https://github.com/dori-dev/news-reader.git
cd news-reader
python -m venv env
source env/bin/activate
pip install -r requirements.txt
rename .env.example
to .env
and change values.
mv .env.example .env
set your environment variables in .env
file.
python manage.py makemigrations news taggit
python manage.py migrate
python manage.py createsuperuser
Install redis from here After installing redis run redis server
redis-server --daemonize yes
Then test redis
$ redis-cli ping
PONG
Run project using this command
python manage.py runserver
Open another terminal in this path then run celery worker
source env/bin/activate
python -m celery -A config worker -l info
And open another terminal in this path then run celery beat
:
source env/bin/activate
python -m celery -A config beat -l info
Note: Celery get news every 2 minutes.
Home Page: 127.0.0.1:8000
Admin Page: 127.0.0.1:8000/admin
Download Source Code: Click Here
My Github Account: Click Here