AN INTERNSHIP REPORT
ON
(PROJECT TITLE)
USING PYTHON DJANGO
Submitted by
STUDENT MAYURIKA SONI( 210340131013 )
Student of
Bachelors of Engineering
in
Computer Science & Engineering Department
DECLARATION
I do hereby solemnly declare that the work presented in this Internship Report has been
carried out by me and has not been previously submitted to any other University, College,
and Organization for any academic Qualification and Certificate.
I hereby warrant that the work I have presented does not breach any existing copyright acts.
MAYURIKA SONI
CONFIRMATION LETTER
II
CERTIFICATE OF COMPLETION
II
II
I
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.
TABLE OF CONTENT
WEEK / DAY NO CONTENT PAGE NO
Declaration I
Confirmation Letter II
Completion Certificate III
Company Profile IV
WEEK 1 29 JUNE 2024
- Installation of python, pycharm and django
- First django project setup
30 JUNE 2024
- Sunday (holiday)
WEEK 1 01 JULY 2024
- Django project setup with Super user
- Superuser & Permissions
WEEK 1 02 JULY 2024
- Basic Models Creation
WEEK 1 03 JULY 2024
- Advance Models with different Fields
WEEK 1 04 JULY 2024
- Foreign Key Concept
WEEK 1 05 JULY 2024
- Image Concept
06 JULY 2024
- Holiday
07 JULY 2024
- Rath Yatra(holiday)
WEEK 2 08 JULY 2024
- Admin Site Filters
- Admin Panel UI modification
WEEK 2 09 JULY 2024
- Assignment project task
- Admin Panel Project : MOVIEFLIX
WEEK 2 10 JYLY 2024
- API Integration , Requests Package
- WORKED WITH : NEWS API
WEEK 2 11 JULY 2024
- Final Project Allocation.
WEEK 2 12 JULY 2024
- Project & Report Explanation
- Conclusion
DAY -> 1
:-29 JUNE 2024
Python Installation
1. Go to [Link] site to download python.
Link : [Link]
2. Go to Download > Windows Section.
3. Download stable version of the python.
When You click on the download link, the [Link] file will be downloaded.
4. To install python run the [Link] file as administrator.
5. press install now button.
Important note: check all the checkboxes before installing python.
Python Installed Successfully.
Pycharm installation
1. Click following link to download [Link] :
Link:
[Link]
2. Download the community version of Pycharm.
When you click on the download button your download starts.
3. To install pycharm run the [Link] file as administrator.
4. Select the location where you want to install the pycharm.
5. Tick all the checkboxes and click on next.
Important Note: compulsory tick all checkboxes
6. Click Install Button.
7. Click on finish then your pycharm is installed successfully.
TASK 1 = Django Project Setup
STEP 1 : Create a new project.
STEP 2 : After creating the root project you will get following file
structure.
STEP 3 : Open the terminal.
STEP 4 : pip install django
STEP 5 : CREATE DJANGO PROJECT. django- admin
startproject swiggy .
:
STEP 6 : CREATE DJANGO APPS.
django-admin startapp Userapp django-
admin startapp Deliveyapp
5 REGISTER APPS AT [Link] SITE.
register django apps in se [Link] file inside installed apps list.
swiggy> se [Link] > installedapps
STEP 7 : MIGRATE ALL APPS
python [Link] migrate
STEP 8: RUNSERVER
python [Link] runserver
Click and open url
STEP 9: CREATE SUPERUSERS.
python [Link] createsuperuser
Note: Create a superuser to access the admin panel.
Superusers: 1. Swiggyadmin ( password: swiggyadmin@123 )
2. Swiggysubadmin ( password: subadmin@swiggy )
STEP 10 : RUNSERVER
Python [Link] runserver
STEP 11 : write /admin in port url and press enter in order to access the
admin panel.
Url example : h p://[Link]:8000/admin
Access the superuser credentials.
Swiggyadmin
Access the superuser credentials.
Swiggysubadmin
Django Admin Panel.
DAY2 ->
:-30 JUNE 202
-HOLIDAY(SUNDAY)
DAY -> 3
:-1 JULY 2024
TASK 2 = Django Permissions TASK Solution.
Create New Project as following Details :
Python Project: permission1
Django project: University
Django app: College
Superuser: username: Principal| password: Principal@123
Concept 1 . python [Link] createsuperuser
Note: Create a superuser to access the admin panel.
2. Access the superuser credentials.
3. Add users from the admin dashboard
4. Click on Users > Add user
Username: BCAhead
Password: badmin@123
Username: BCOMhead
Password: badmin@321
All users are created successfully.
Concept 2 . Set permissions.
Username Active Status Staff Status Super user Permissions
Status
BCAhead ✅ ✅ ❌ Can Add Users
Can view users
✅ ✅ ✅
BCOMhead –
Click on BCAhead and change user permissions.
BCAheaduser permissions are done.
Note : Modifying the BCOMhead permissions:
Note : Add one student as user from BCAhead Panel.
Username: Student1 | Password: sadmin@123
Note : Add permission BCAhead of user can change and user can delete
Note : Now Login with BCOMHead and change permissions for following users.
Note: BCOMHead is a superuser so it can change the permission of other users
Username Active Status Staff Status Permissions
Super user
Status
BCAhead ❌ ✅ ❌ Can view users
✅ ✅ ❌
Principal –
Note : Modifying BCAhead permissions from BCOMhead account.
BCAhead user permissions are done.
Note : Modifying Principal permissions from BCOMhead account.
Principal user permissions are done.
All user permission are done.
TASK 2
Create new python project:
Django project: swiggy
Django app: restrauntapp
Django app: deliveryboyapp
Django app: userapp
Superuser: username: swiggyadmin| password: swiggy@123 Login
swiggyadmin and add users.
Username: restaurant1
Password: swiggy@123
Username: restaurant2
Password: swiggy@12345
Concept 1 . python [Link] createsuperuser Note: Create a
superuser to access the admin panel.
2. Access the superuser credentials.
3. Add users from the admin dashboard
4. Click on Users > Add user
Username: restaurant1
Password: swiggy@123
Username: restaurant2
Password: swiggy@12345
Concept 2 . Set permissions.
Username Active Status Staff Status Super user Permissions
Status
restaurant1 ✅ ✅ ❌ Can Add Users
Can view users
Click on restaurant1 and change user permissions.
restaurant1 permissions are done.
Note : Add deliveryboy as user from restaurant Panel.
Username: deliveryboy | Password: deliveryboy@123
Note : Add permission in restaurant1 user can change and user can delete
Note : Modify permission according to below information :
Username Active Status Staff Status Permissions
Super user
Status
deliveryboy ✅ ✅ ❌ Can view users
Deliveryboy permission are done.
DAY -> 4
:-02 JULY 2024
TASK 3 = Django Permissions TASK Solution.
MODELS TASK:
Pythonproject: modelprac Django
project: university
Django app: collegeapp
Superuser : username: infoadmin | password: 123
Step 1: Create a model as per following fields inside yourapp
> [Link] :
Collegedetail
name
address
phone
email
established_year
city
Coursedetail
name
duration
seats
fees
[Link]
Step 2: python [Link] makemigrations
Step 3: python [Link] migrate
Step 4: Register model in [Link] to give access to admin
Step 5: python [Link] createsuperuser
Step 6: python [Link] runserver
Step 7: Open the admin site to check the models.
Step 8 : login with admin credentials and check output.
Model created successfully.
Step 9: Add data in College details.
Step 10: Add data in Course details.
DAY -> 5
:-03 JULY 2024
TASK 4 = MULTIPLE AND ADVANCED MODELS
CREATION TASK SOLUTION
STEP 1 : Create a models in [Link]
CREATE FOLLOWING MODELS AS PER TABLE FIELDS.
INSTRUCTOR
ID PRIMARY KEY
FIRST_NAME
verbose_name=”First Name”
LAST_NAME
verbose_name=”Last Name”
DOB
verbose_name=”Birth Date”
DOJ
verbose_name=”Date Of Joining”
DEPARTMENT Dropdown choices (sales, marketing, development, teaching)
CONTACT
EMAIL
is_active BooleanField , verbose_name=”Active Status”
linkedinURL UrlField
COURSE
ID PRIMARY KEY
COURSE_TITLE Dropdown choices (python, flutter, django, react, php)
COURCE_CODE
PRICE
DESC
START_DATE
END_DATE
is_available BooleanField , verbose_name=”Active Status”
STEP 2 : python [Link] makemigrations
STEP 3 : python [Link] migrate
STEP 4 : Register from admin site
STEP 5 : python [Link] runserver Add Information in
Django admin panel
1. Students
2. Course
3. Instructor
1. Students
2. Course
3. Instructor
DAY -> 6
:-04 JULY 2024
TASK 5 = FOREIGN KEY CONCEPT
SOLUTION
Python Project: cricbuzz
Django Project: cricket
Django App: cricinfo
Superuser: username: infolabzadmin | password: 123
STEP 1 : Create a models in [Link]
STEP 2 : Register from admin site
STEP 3 :python [Link] makemigrations
STEP 4 : python [Link] migrate
STEP 5 : python [Link] runserver
STEP 6: Add Information in Django
admin panel 1. Player Category
Django admin panel Dashboard
1. Player Category
2. Player Team
3. Player
DAY -> 7
:-05 JULY 2024
TASK 6 = IMAGE CONCEPT TASK SOLUTION
Create New Project as following Details :
Python Project: ImageMultipleTask
Django Project: Infolabz
Django App: newapp
Superuser: username: infolabzadmin | password: 123
STEP 1 : INSTALL PILLOW LIBRARY : pip install pillow
STEP 2 : Create Following Model.
Newsarticle
news_title
news_type DROPDOWN CHOICES (politics, sports, business)
news_description
news_tags
news_image IMAGEFIELD
posted_date
Create a models in [Link]
STEP 3: Register from admin site
STEP 4 : python [Link] makemigrations
STEP 5 : python [Link] migrate
STEP 6 : python [Link] runserver
STEP 7 : Add News Article in Django admin panel
Record Added Successful.
DAY -> 8
:-06 JULY 2024
- Saturday(Holiday)
DAY -> 9
:-07 JULY 2024
- Sunday(Holiday)
DAY -> 9
:-08 JULY 2024
TASK = Theme Customize and filters
Open Foreign key project made earlier.
[Link]
To apply filters in models we have to customize classes made in [Link].
List filter is used to display filters in various field
List editable is used to display editable fields like price where we can edit multiple data
simultaneously.
Search field is used to search the data among records.
List per page is used to apply pagination in [Link]
How to customize a theme of the django admin panel.
Step 1: go to this url [Link]
Step 2: you will find multiple packages(themes) which we can apply in the
project. Click on django-jazzmin.
Step 3: read all the docs provided in the link. This will have steps to apply
themes in django.
Step 4: to apply django-jazzmin in project open terminal type following
command.]
Pip install django-jazzmin
Step 5: in [Link] > INSTALLED_APPS add “jazzmin” above
“[Link]”
INSTALLED_APPS = [
'jazzmin',
'[Link]',
[...] ]
Step 6: run project
Step 7: Type /admin at end of the url.
Output : layout modified succesfull.
DAY -> 10
:-09 JULY 2024
TASK = MOVIEFLIX SOLUTION(mini project for
practice & revision)
Create a models in [Link]
python [Link] makemigrations
python [Link] makemigrations
python [Link] migrate Register from admin site
python [Link] runserver
Django admin panel
1. Country
2. State
3. City
4. User
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Django admin panel dashboard
1. Country
2. State
3. City
4. User
5. Genre
6. Actor
7. Director
8. Movie
9. Review
10.
11. Watchlist
API WORK
API LINK :
[Link]
[Link]/news/top
Final Project
Create a new project and
Add root project details
such as root project title,
project storage location,
python version etc..
After creating the root
project you will get
following file structure.
Open the terminal.
Perform the following
steps to set up the django
project.
Step 1 : pip install django
Step 2 : django-admin
startproject myproject .
Step 3 : django-admin
startapp myapp
Step 4 : register django
apps in [Link] file
inside installed apps list.
myproject >
[Link] > installedapps
Step 5 : python
[Link] migrate
Step 6 : python
[Link] runserver
Step 8 : python
[Link]
createsuperuser
Note: Create a superuser
to access the admin panel.
Note : you have to
provide the information
for superuser such as
username, email,
password and confirm
password ect..
Step 9 : python
[Link] runserver
Step 10 : write /admin in
port url and press enter in
order to access the admin
panel.
Url example :
[Link]
n
Access the superuser
credentials.
Django Admin Panel.
Django Project Setup
Successfully Completed.