Skip to content

Sample Django News Website - Windows/Powershell Setup

License

Notifications You must be signed in to change notification settings

sepranagw/lead-news

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lead-news

Installation for Windows/Powershell (performed from VSCode)

This was a good sample Django web project, first one I got to actually work from Github

This was well documented, it just needed a few tweaks to get it to work from Windows/Powershell/VSCode

git clone https://github.com/Gowtham1729/lead-news
cd lead-news
python -m pip install virtualenv
python -m venv ./lead_news_venv
.\lead_news_venv\Scripts\activate
pip install -r requirements.txt
# Check django installation
python -m django --version
# do db migrate
python manage.py migrate
# Cannot set the api key to empty environmental variable in Powershell (Linux version from original branch does this)
# Must go to https://newsapi.org to create a free API key, return and put it in your NEWS_API_KEY
export NEWS_API_KEY = "<your_free_api_Key>"
# fetch the news of preferred topic (set the topic with --topic tag)
python manage.py populate_news --topic japan
python manage.py runserver
# create superuser
py manage.py createsuperuser

Note: Change the port number if the site is running on a different port

Demo

lead_news

About

Sample Django News Website - Windows/Powershell Setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.2%
  • HTML 34.8%