PYTHON PROJECT
THE DAY IN A MINUTE NEWS WEBSITE
USING
PYTHON AND DJANGO
SUBMITTED BY
SURYAJ CJ
CB TECH
KADAVANTHRA,KOCHI
THE DAY IN A MINUTE NEWS WEBSITE
MINUTE NEWS DAILY
TITLE
MINUTE NEWS DAILY
INTRODUCTION
It would be a simple News Website where users can do the following things:
◆
Read the daily summarised news.
◆
View live News by linking YouTube.
◆
Read about historic events.
These all will be the features of the website.
TECHNOLOGY USED
Python, Django Framework, HTML, CSS, SQLite,
EDITOR – PyCharm
EXPLANATION OF EACH PAGES
INDEX.HTML
This is the home page of this web site displaying daily news in brief summaries with images
•
•
•
Daily news shortened content for quick reading
Images of the incident are added on top followed by heading and description
The latest news will be updated on top and the older once will be down below
LIVE.HTML
This page displays live news channels by the help of YouTube. A series of live channels are available
and can be played in the site
•
•
•
The page is connected to YouTube live channels by html codes
The live video can be played with in the site
Different variety of channels are available
HISTORY.HTML
The page displays historic and scientific events with images and text
•
•
•
The page displays latest and old scientific discoveries and theories and historic content
Images of the incident are added on top followed by heading and description
Newly updated content will be displayed on top
ABOUT.HTML
Displays the address contact details and other descriptions
•
•
Displays the contact details and address
A small description about the programmer and the programming company
BASE.HTML
This page is used to write the basic html codes which is then inherited to other pages
•
•
•
Contains the basic html codes
The codes are inherited to history.html, live.html and about.html files
Index.html stays independent
VIEWS.PY
This python file contains all the important functions for the web site
•
•
•
•
Index: connecting the class News from models.py to the index.html file which is the home page of the
web site
Live: helps to display the live.html file
History: connecting the class History from models.py to the history.html file
About: helps to display the about.html file
MODELS.PY
The python file contains all the classes that are required for the proper function of the website
•
•
News: the class News has a character text and image field for inputting the necessary content
History: the class History has a character text and image field for inputting the necessary content
URLS.PY
Connects the contents in views.py to the required html pages
SCREEN SHOTS
INDEX.HTML
LIVE.HTML
HISTORY.HTML
ABOUT.HTML
.