KhabarDekho is a portal in which users can read the daily trending news according to their location. In this project news API has been used to fetch the news.
Clone the repo in your local system
git clone https://github.com/prabs222/NewsAppUsingDjango.git
Install virtualenv
py -m pip install --user virtualenv
Create a new Virtualenvironment
py -m venv env
Activate the Virtualenvironment with
.\env\Scripts\activate
Change directory to the folder
cd folder-where-you-cloned-the-repo
Apply all the migrations with
python3 manage.py migrate
Run the developement server with
python3 manage.py runserver
You'll see output like this
Performing system checks...
System check identified no issues (0 silenced).
July 04, 2022 - 15:50:53
Django version 4.0, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Clone the repo in your local system
python3 manage.py createsuperuser
You will see a screen like this
Username (leave blank to use 'default'):
Enter a username and press enter , you will see a screen like this
Email address:
Enter an email and press enter , then you will see a screen like this
Password:
Enter a password , then you will see a screen like this
Password (again):
Re-enter the password and you are done! You will see a screen like this
Superuser created successfully
Client: HTML , CSS , Javascript
Server: Django , Python
- Latest News updated every 1 hour through cron job.
This project needs your shiny star ⭐.
Don't forget to leave a star ⭐️