Giter Club home page Giter Club logo

django_random_news's Introduction

Django Random News

Deployment

Project is deployed on heroku at this link https://django-random-news.herokuapp.com/

How to run the project

  1. Ensure the following python library is installed in your computer
newsapi-python
Django
  1. Obtain a api key from https://newsapi.org/ and place it into apiKey.py in 'website' app

  2. Make migration for the website app

python manage.py makemigrations website
python manage.py migrate
  1. To run the web app
python manage.py runserver

Distinctiveness and Complexity

User will be able to

  1. Login and logout
  2. Click on generate news button to random pulls a recent article text from a random news outlet
  3. Specify what category of news they are interested in
  4. View list of articles viewed in the past
  5. Delete article from history

Files and directory

  • RandomNews - project directory
  • Website - Main app directory
    • static\website - Contains all the static files
      • script.js - Contains the js codes
    • templates\website - Contains all the html files
      • index.html - Main page for the website
      • layout.html - Template for the website
      • login.htmml - Contains the template for logging in
      • navbar.html - Inserted into layout.html for the navbar
      • register.html - Contains the template for registering
    • admin.py: added models here to access in admin page
    • apiKey.py: Contains the API key for newsAPI
    • models.py: Contains the models for this project
    • urls.py: Contains the URL routes
    • views.py: Contains the function for the views
  • Requirements.txt: Contains all the necessary library and their version

django_random_news's People

Contributors

marcuspeh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.