Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 21

INTERNSHIP SEMINAR

Weather App using Django


CONTENTS

• INTRODUCTION TO TOPIC
• OBJECTIVE
• INDUSTRY PROFILE
• DESIGN
• MODULE
• TESTING
• RESULT
• CONCLUSION
• REFERENCES
INTRODUCTION TO THE TOPIC

Django and Python can seem overwhelming at first, but quick and easy it is to create very professional looking

websites, even if you have no programming or web design experience at all.

A simple Django app that displays the current weather for various cities. To get the current weather data, we’ll use

the Open Weather Map API.

Create database and create a form, so the concepts used here are applicable to more complicated projects.
OBJECTIVE

• Django is a Python-based web framework that allows you to quickly create efficient web
applications. It is also called batteries included framework because Django provides built-in
features for everything including Django Admin Interface, default database – SQLlite3, etc.
• A Weather app that uses Django as backend. Django provides a Python Web framework based web
framework that allows rapid development and clean, pragmatic design.
INDUSTRY PROFILE

• AIS (ACCURATE INFO SOLUTION) is a company who majorly deals with project work,
internship, soft skill training, robotics mainly to engineering and BCA students
• Workshops and course content prepared based on industry practices and requirements
• Students who indulge in and complete real time industrial projects will be awarded certificate of
merit
• The company follows a non-conventional approach towards internship by letting the interns learn
by their own experiences instead of undergoing a classroom teaching program
• The interns are encouraged to take up real time problems and develop a problem solving approach
towards it.
DESIGN

Django is based on MVC (Model-View-Controller) architecture. MVC is a software design pattern for developing
web application. MVC have following three parts-
Model- Model is going to act as interface of your data. It is responsible for maintaining data.
View- View is gonna be the interface that user see.
Controller- Controller passes information between model and view.
A simple Django app that displays the current weather for various cities.
To get the current weather data, use the Open Weather Map API.
Create a database and a form, so the concepts used here are applicable to more complicated projects.
The code in this project is written with Python 3 and Django 2.0
MODULES IMPLEMENTED

The below are the set of modules implemented during the period of internship
• The Admin Dashboard
• Creating the App
• Adding the Template and View
• Using the Weather API
• Displaying the Data in the Template
• Creating the Form
MODULES IMPLEMENTED

• Installing Django
pipenv install Django

• Run start project command that Django generates the project


django-admin startproject the_weather

• To navigate to the new directory use manage.py to run runserver command in termina;

cd the_weather
python manage.py runserver

• The URL for the app is seen and by default it should be 127.0.0.1:8000.
MODULES
MODULES
MODULES
MODULES
...

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'weather',
]

...
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('weather.urls')),
]
MODULES
RESULTS
RESULTS
RESULTS
RESULTS
RESULTS
RESULTS
CONCLUSIONS

• This project works with various parts of Django to get this working: views, models, forms, and templates. Also
had to use the Python library requests to get the actual weather data. So even though the app is simple, you’ll use
many of the same concepts in apps with more complexity.
.
THANK YOU

You might also like