0% found this document useful (0 votes)
10 views22 pages

REPORT INTERNSHIP (Rushabh)

This internship report details the training and projects undertaken by Thakor Rushabh Prakashkumar on the Python Django framework during a summer internship at Infolabz IT Services Pvt. Ltd. The report includes a company profile, a week-by-week breakdown of topics covered, and practical programming exercises, culminating in a project focused on an online travel ticket booking system. Key concepts include Python basics, Django setup, data visualization, and database modeling.

Uploaded by

safog47707
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views22 pages

REPORT INTERNSHIP (Rushabh)

This internship report details the training and projects undertaken by Thakor Rushabh Prakashkumar on the Python Django framework during a summer internship at Infolabz IT Services Pvt. Ltd. The report includes a company profile, a week-by-week breakdown of topics covered, and practical programming exercises, culminating in a project focused on an online travel ticket booking system. Key concepts include Python basics, Django setup, data visualization, and database modeling.

Uploaded by

safog47707
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

AN INTERNSHIP REPORT

ON

PYTHON DJANGO FRAMEWORK

Submitted by

THAKOR RUSHABH PRAKASHKUMAR(236400316216)

Student of

Diploma in Engineering
in

Informaion Technology

Summer Internship(4330001) I
CONFIRMATION LETTER

Summer Internship(4330001) II
CERTIFICATE OF COMPLETION

Summer Internship(4330001) III


COMPANY PROFILE

Established in 2016, incorporation with our parent IT company, INFOLABZ IT SERVICES PVT.
LTD. has managed to make it's own position in IT Sector. We are involved in Web Development,
App Development, Progressive Web Application Development, IOT solutions, Graphics &
Designing, Digital Marketing, Domain & Hosting services, SMS services etc.

In the span of seven years we have managed to deliver all projects on time with utmost accuracy to
our clients across the globe. We have dedicated teams of experienced andhard working developers.
Our developers who are always willing to take new challenges and looking forward to learn new
things, are heart of this company.

Our objective is to sustain with exponential growth in IT industry. Our mission is to deliver the best
with top notch quality every quarter and vision is to develop a product with one of its kind concept
which could be used by millions of people.

Summer Internship(4330001) IV
TABLE OF CONTENT
WEEK/DAY NO. CONTENT PAGE NO

DECLARATION I

OFFER LETTER II

CERTIFICATE OF COMPLETION III

COMPANY PROFILE IV

WEEK 1 27JUNE 2024 1

- BASICS OF PYTHON

- CONDITION FLOW (IF , IF ELSE, NESTED IF ELSE)

- LOOPS (FOR LOOP, WHILE LOOP, INFINITE LOOP)

WEEK 1 28 JUNE 2024 2

- DICTIONAY, LIST

- REQUESTS PACKAGE

- API

WEEK 1 01 JUNE 2024 3-5


- MATPLOTLIB

- GRAPHS : PIE CHART , LINE CHART, BAR CHART

WEEK 1 02JULY 2024 6

- BASICS OF DJANGO INSTALLATION

- DJANGO PROJECT SETUP

Summer Internship(4330001) V
WEEK 1 03JULY 2024 7

- DJANGO APP CREATION

- CREATE SUPERUSER TO ACSSES ADMIN PANAL

- PERMISSIONS TASK

WEEK 1 04 JULY 2024 8

- BASIC MODELS CREATION

- SUPERUSER CREDENTIALS

WEEK 2 05 JULY 2024 9

- CONCEPT OF FOREIGN KEY

WEEK 2 08 JULY 2024 10 - 12

- PROJECT WITH MULTIPLE TABLES

- AND DIFFERENT FORM FIELDS ADVANCED


MODELS.

WEEK 2 09 JULY 2024 13 - 15


- PROJECT WORK : DICTIONARY QUESTIONS, API
ASSIGNMENT AND GRAPH QUESTIONS, DATA
DICTIONARY

- INDUSTRY ASSIGNED PROJECT DEVELOPMENT

WEEK 2 10 JULY 2024 16

- ADMIN SITE UI MODIFICATION

- PROJECT REPORT EXPLANATION

Summer Internship(4330001) VI
WEEK 1 :

 27JUNE 2024 

PYTHON :
Understanding and Installing Python From Online Web Site and Setup Python.
 URL : https://www.python.org/downloads

PYCHARM ( IDE ) :
Python Interpreter is a Software to write a code run. PYCHARM is Best Interpreter or
code editer.
 URL : https://www.jetbrains.com/pycharm/download/?section=windows
Create Some Programes to Understand Concept of if elif else and loops like for loop and while loop

PROGRAM 1:
a=int(input("enter the time:"))
if a in range(6,12):
print("Good Morning")
elif a in range(12,16):
print("Good Afternoon")
elif a in range(16,22):
print("Good Evening")
else:
print("Good night")
PROGRAM 2:
grocery_list=["milk", "eggs", "bread", "butter","oil","Rice"]
movies_list=["Kalki", "Oppenheimer", "Animal","Avenger End Game","KGF Chapter 2"]
for i in grocery_list:
if i == "butter":
print(i)

Summer Internship(4330001) 1
 28JUNE 2024 

Create Some Programes to Understand Concept of Dictionary,list, Request Package and API

PYTHON DATA STRUCTURE: Dictionary and List


PROGRAM 3 :
mydata = {
"property_details": {
"name": "abhishek appartments",
"price": "1.40 CR",
"is_available": True,
"location":"vastrapur",
"details": [
{"type":"kitchen","area":210},
{"type":"master room","area":290},
{"type":"kids room","area":220}]},}
QUESTION 1 : print total number of Keys
QUESTION 2: print names of main keys
QUESTION 3: print name of apartment ( abhishek appartments )
QUESTION 4: print living room area ( 310 )
PROGRAM AND OUTPUT:

Summer Internship(4330001) 2
WHAT IS REQUEST PACKAGE?

The "requests" package in Python refers to the popular third-party library known as "Requests." It is a
library designed to simplify the process of making HTTP requests, interacting with web services.
INSTALL PACKAGE:
Go to terminal -> pip install requests
WHAT IS API?
API Means Applicaion Programing Interface it is a piece of software within a system that defines how
other components or systems can use that system. The API defines the types of requests that can be
made, how to make them, and the data formats that must be used.

PROGRAM 4:

API LINK 1: https://quote-garden.onrender.com/api/v3/quotes

QUESTION 1 : print name main of Keys


QUESTION 2 : print total number of main keys
QUESTION 3 : print the quoteAuthor : Hosea Ballou

PROGRAM AND OUTPUT:

DATA VISUALIZATION :
Data visualization in Python involves crafting visual displays like charts, graphs, and plots to visually
convey patterns and insights discovered within datasets. Python offers libraries like Matplotlib,
Seaborn, Plotly, and more, empowering users to generate diverse visualizations. These visual
representations aid in comprehending intricate data, recognizing trends, guiding decision-making, and
simplifying the communication of findings to a broader audience

Summer Internship(4330001) 3
MATPLOTLIB :

Matplotlib stands as a widely adopted Python library designed to craft static, interactive, and animated
visualizations, encompassing an array of charts, graphs, and plots. This library presents a versatile and
adaptable framework that empowers the creation of diverse visual data representations. Renowned in
data analysis, scientific exploration, and domains relying on data visualization, Matplotlib extends an
extensive selection of plotting choices—ranging from line plots, bar plots, and scatter plots to
histograms—rendering it a versatile instrument for articulating discoveries drawn from datasets.

GENERATE GRAPH AS SHOWN IN OUTPUT FROM BELOW DATA


home_types = ['Flat', 'Bungalow', 'Villa']
sales = [40, 30, 20]
PROGRAM 5:
import matplotlib.pyplot as plt

# Sample data (replace with your actual data)


home_types = ['Flat', 'Bungalow', 'Villa']
sales = [40, 30, 20]

# Create a pie chart


plt.pie(sales, labels=home_types, autopct='%1.1f%%', startangle=140)

# Adding title
plt.title('Distribution of Home Types based on Sales')

# Display the plot


plt.show()

OUTPUT::

Summer Internship(4330001) 4
GENERATE GRAPH AS SHOWN IN OUTPUT FROM BELOW DATA
years = [2018, 2019, 2020, 2021, 2022]
bungalow_sales = [30, 35, 40, 38, 42]
PROGRAM:
import matplotlib.pyplot as plt

# Sample data (replace with your actual data)


years = [2018, 2019, 2020, 2021, 2022]
bungalow_sales = [30, 35, 40, 38, 42]

# Create a line graph


plt.plot(years, bungalow_sales, marker='o')

# Adding labels and title


plt.xlabel('Year')
plt.ylabel('Bungalow Sales')
plt.title('Bungalow Sales Over Years')

# Display the plot


plt.grid(True)
plt.show()

OUTPUT:

Summer Internship(4330001) 5
01JULY 2024
INTRODUCTION TO DJANGO FRAMEWORK:

Django is a high-level, open-source web framework written in Python that enables developers to build
robust, secure, and maintainable web applications rapidly.
 DJANGO FRAMEWORK SETUP:
STEP 1 : Install Django Framework : pip install django

 DJANGO PROJECT SETUP


STEP 2 : Create Django project : django-admin startproject (Project Name)

Summer Internship(4330001) 6
STEP 3 : Create Django project : django-admin startapp (app name)

STEP 3 : Check for changes in db structure : python manage.py makemigrations

STEP 4 : Add / Migrate table in db : python manage.py migrate

Summer Internship(4330001) 7
STEP 5 : Run project : python manage.py runserver

Summer Internship(4330001) 8
STEP 6: Create superuser : python manage.py createsuperuser

STEP 7 : access the superuser credentials.

Summer Internship(4330001) 9
Project Title: Travel Tikets Booking Online
PROJECT DATA DICTIONARY:
Table: User
Field Name Field Type

NAME

FIRST_NAME

LAST_NAME

EMAIL

PASSWORD

Table: Country
Field Name Field Type
NAME
CODE

Table: State
Field Name Field Type
COUNTRY (Foreign Key) Refers to Country Table
NAME

Table: City
Field Name Field Type
STATE (Foreign Key) Refers to State Table
NAME
Summer Internship(4330001) 10
Table: Activity Category
Field Name Field Type
NAME

Table: Activity
Field Name Field Type

TITLE

DESCRIPTION
Refers to Activity Category Table
CATEGORY

VENUE_NAME

ADDRESS

CITY

STATE

COUNTRY

AGE_GROUP

PRICE

DATE

TIME_FROM

TIME_TO

Table: Booking
Field Name Field Type
USER(Foreign Key) Referencing to User
ACTIVITY

PARTICIPANTS
BOOKING_DATE
STATUS

Summer Internship(4330001) 11
Table: : Payment
Field Name Field Type
USER Referencing to User
BOOKING Referencing to Booking
AMOUNT

PAYMENT_DATE

Table: Review
Field Name Field Type
USER Referencing to User
ACTIVITY Referencing to Activity
RATING

COMMENT

Table: ContactUs
Field Name Field Type
NAME

EMAIL

PHONE

MESSAGE

Summer Internship(4330001) 12
:PROGRAM :

Summer Internship(4330001) 13
Summer Internship(4330001) 14
create models into database:

python manage.py makemigrations

python manage.py migrate

Summer Internship(4330001) 15
Register At Admin Site.

ADMIN DASHBOARD :

Summer Internship(4330001) 16

You might also like