Professional Documents
Culture Documents
1 (1)
1 (1)
1 (1)
3
Q. Create one appliction which display information of your college and Staff
members.
settings.py Code File:
"""
https://docs.djangoproject.com/en/5.0/topics/settings/
https://docs.djangoproject.com/en/5.0/ref/settings/
"""
import os
BASE_DIR = Path(_file_).resolve().parent.parent
TEMP_DIR=os.path.join(BASE_DIR,'template')
STATIC_DIR=os.path.join(BASE_DIR,'static')
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
SECRET_KEY = 'django-insecure-6o=1lj$ynp#7gsmkb77+$je7f@tf)g*)f2t%y#78ih3n476!v8'
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',
'ybit1app'
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 = 'ybit1.urls'
TEMPLATES = [
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMP_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 = 'ybit1.wsgi.application'
# Database
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
# Password validation
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators
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/5.0/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_TZ = True
# https://docs.djangoproject.com/en/5.0/howto/static-files/
STATIC_URL = 'static/'
STATICFILES_DIRS=[
STATIC_DIR,
]
# Default primary key field type
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
The urlpatterns list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
Class-based views
"""
urlpatterns = [
path('admin/', admin.site.urls),
path('',views.index),
path('Staff/',views.caInfo),
path('Mechanical/',views.meInfo),
path('Electrical/',views.eeInfo),
path('Civil/',views.ceInfo),
path('Computer/',views.coInfo),
]
def caInfo(request):
my_dict={
'head_msg':'College Information',
'sub_msg1':'Sindhudurgs new engineering college YBIT is a beacon of hope and opportunity for aspiring engineers
in the region. Established with a vision to provide world-class education and nurture exceptional talent, this institution
stands as a testament to progress and development. The college boasts state-of-the-art facilities, modern classrooms, well-
equipped laboratories, and a dedicated faculty team that is committed to fostering a conducive learning environment.
With a comprehensive curriculum that combines theoretical knowledge with practical application, students at YBIT are
equipped with the skills and expertise needed to excel in their chosen fields. The institution also places a strong emphasis
on industry collaboration, providing students with internships and placement opportunities that bridge the gap between
academia and the professional world. Through its commitment to academic excellence, innovation, and holistic
development, YBIT is poised to shape the future of engineering education in the region and empower students to become
the leaders and problem solvers of tomorrow.',
'sub_msg2':'Apply NowAdmissions are now open Yashwantrao Bhonsale Institute of Technology, Sawantwadi,
established in 2023, is a comprehensive Technical Institute located at Charathe (Vazarwadi), Sawnatwadi, enjoying a
picturesque setting that is unique among the educational set-up of this region of Maharashtra. Having a distance of about
2.5 km. from city of Sawantwadi, it is a quiet and peaceful place maintaining an atmosphere where faculty and students
would take the process of teaching and learning seriously',
'sub_msg4':'Departments:',
return render(request,'ybit.html',context=my_dict)
def meInfo(request):
my_dict={
'head_msg':'Mechanical Department',
'sub_msg1':'Sindhudurgs new engineering college YBIT is a beacon of hope and opportunity for aspiring engineers
in the region. Established with a vision to provide world-class education and nurture exceptional talent, this institution
stands as a testament to progress and development. The college boasts state-of-the-art facilities, modern classrooms, well-
equipped laboratories, and a dedicated faculty team that is committed to fostering a conducive learning environment.
With a comprehensive curriculum that combines theoretical knowledge with practical application, students at YBIT are
equipped with the skills and expertise needed to excel in their chosen fields. The institution also places a strong emphasis
on industry collaboration, providing students with internships and placement opportunities that bridge the gap between
academia and the professional world. Through its commitment to academic excellence, innovation, and holistic
development, YBIT is poised to shape the future of engineering education in the region and empower students to become
the leaders and problem solvers of tomorrow.',
'sub_msg2':'Apply NowAdmissions are now open Yashwantrao Bhonsale Institute of Technology, Sawantwadi,
established in 2023, is a comprehensive Technical Institute located at Charathe (Vazarwadi), Sawnatwadi, enjoying a
picturesque setting that is unique among the educational set-up of this region of Maharashtra. Having a distance of about
2.5 km. from city of Sawantwadi, it is a quiet and peaceful place maintaining an atmosphere where faculty and students
would take the process of teaching and learning seriously.',
'sub_msg4':'Staff Members:',
return render(request,'me.html',context=my_dict)
def eeInfo(request):
my_dict={
'head_msg':'Electrical Department',
'sub_msg1':'Sindhudurgs new engineering college YBIT is a beacon of hope and opportunity for aspiring engineers
in the region. Established with a vision to provide world-class education and nurture exceptional talent, this institution
stands as a testament to progress and development. The college boasts state-of-the-art facilities, modern classrooms, well-
equipped laboratories, and a dedicated faculty team that is committed to fostering a conducive learning environment.
With a comprehensive curriculum that combines theoretical knowledge with practical application, students at YBIT are
equipped with the skills and expertise needed to excel in their chosen fields. The institution also places a strong emphasis
on industry collaboration, providing students with internships and placement opportunities that bridge the gap between
academia and the professional world. Through its commitment to academic excellence, innovation, and holistic
development, YBIT is poised to shape the future of engineering education in the region and empower students to become
the leaders and problem solvers of tomorrow.',
'sub_msg4':'Staff Members:',
return render(request,'ee.html',context=my_dict)
def ceInfo(request):
my_dict={
'head_msg':'Civil Department',
'sub_msg1':'Sindhudurgs new engineering college YBIT is a beacon of hope and opportunity for aspiring engineers
in the region. Established with a vision to provide world-class education and nurture exceptional talent, this institution
stands as a testament to progress and development. The college boasts state-of-the-art facilities, modern classrooms, well-
equipped laboratories, and a dedicated faculty team that is committed to fostering a conducive learning environment.
With a comprehensive curriculum that combines theoretical knowledge with practical application, students at YBIT are
equipped with the skills and expertise needed to excel in their chosen fields. The institution also places a strong emphasis
on industry collaboration, providing students with internships and placement opportunities that bridge the gap between
academia and the professional world. Through its commitment to academic excellence, innovation, and holistic
development, YBIT is poised to shape the future of engineering education in the region and empower students to become
the leaders and problem solvers of tomorrow.',
'sub_msg2':'Apply Now Admissions are now open Yashwantrao Bhonsale Institute of Technology, Sawantwadi,
established in 2023, is a comprehensive Technical Institute located at Charathe (Vazarwadi), Sawnatwadi, enjoying a
picturesque setting that is unique among the educational set-up of this region of Maharashtra. Having a distance of about
2.5 km. from city of Sawantwadi, it is a quiet and peaceful place maintaining an atmosphere where faculty and students
would take the process of teaching and learning seriously.',
'sub_msg3':'WELCOME TO DEPARTMENT OF CIVIL ENGINEERING This new age, the age of Technology,
dawned with the discovery of Electricity and the subsequent development of Electrical Engineering. Equipped with
modern infrastructure and supported by a team of competent faculty members , the Electrical Department at
Yashwantrao Bhonsale Polytechnic, Sawantwadi was set up in 2014. The key strengths of the department are qualified
staff, established labs, Integrity in work, motivation, systematic process approach, Liberal work environment, student
and staff feedback system, Yashwantrao Bhonsale Polytechnic understands the importance of Electrical Engineering and
is fully capable of meeting the expectations of young aspiring Engineers. The Electrical Engineering Department
emphasizes on rigorous training in analytical and experimental techniques, effectively giving students an integrated
approach and a thorough understanding of how to solve the problems and more importantly, equip them to face the
challenges in Industry.The aim of Electrical Engineering program is to provide an ability to design a system, component,
or process to meet desired needs within realistic constraints such as economic, environmental, social, political, ethical,
health and safety, manufacturability, and sustainability',
'sub_msg4':'Staff Members:',
return render(request,'ce.html',context=my_dict)
def coInfo(request):
my_dict={
'head_msg':'Computer Department',
'sub_msg1':'Sindhudurgs new engineering college YBIT is a beacon of hope and opportunity for aspiring engineers
in the region. Established with a vision to provide world-class education and nurture exceptional talent, this institution
stands as a testament to progress and development. The college boasts state-of-the-art facilities, modern classrooms, well-
equipped laboratories, and a dedicated faculty team that is committed to fostering a conducive learning environment.
With a comprehensive curriculum that combines theoretical knowledge with practical application, students at YBIT are
equipped with the skills and expertise needed to excel in their chosen fields. The institution also places a strong emphasis
on industry collaboration, providing students with internships and placement opportunities that bridge the gap between
academia and the professional world. Through its commitment to academic excellence, innovation, and holistic
development, YBIT is poised to shape the future of engineering education in the region and empower students to become
the leaders and problem solvers of tomorrow.',
'sub_msg2':'Apply NowAdmissions are now open Yashwantrao Bhonsale Institute of Technology, Sawantwadi,
established in 2023, is a comprehensive Technical Institute located at Charathe (Vazarwadi), Sawnatwadi, enjoying a
picturesque setting that is unique among the educational set-up of this region of Maharashtra. Having a distance of about
2.5 km. from city of Sawantwadi, it is a quiet and peaceful place maintaining an atmosphere where faculty and students
would take the process of teaching and learning seriously.',
'sub_msg4':'Staff Members:',
return render(request,'co.html',context=my_dict)
def index(request):
return render(request,'index.html')
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>YBIT INFO</title>
</head>
<body>
<div class="nav-logo">
Vaibhavi Gosavi
</h1>
</div>
<div class="navbar">
</div>
</body>
</html>
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>{{head_msg}}</h1>
<ul>
<li><h2>{{sub_msg1}}</h2></li>
<li><h2>{{sub_msg2}}</h2></li>
<li><h2>{{sub_msg3}}</h2></li>
<li><h2>{{sub_msg4}}</h2></li>
<h2>{{sub_msg5}}</h2>
<h2>{{sub_msg6}}</h2>
<h2>{{sub_msg7}}</h2>
<h2>{{sub_msg8}}</h2>
</ul>
</body>
</html>
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>{{head_msg}}</h1>
<ul>
<li><h2>{{sub_msg1}}</h2></li>
<li><h2>{{sub_msg2}}</h2></li>
<li><h2>{{sub_msg3}}</h2></li>
<li><h2>{{sub_msg4}}</h2></li>
<h2>{{sub_msg5}}</h2>
<h2>{{sub_msg6}}</h2>
<h2>{{sub_msg7}}</h2>
<h2>{{sub_msg8}}</h2>
<h2>{{sub_msg9}}</h2>
</ul>
</body>
</html>
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>{{head_msg}}</h1>
<ul>
<li><h2>{{sub_msg1}}</h2></li>
<li><h2>{{sub_msg2}}</h2></li>
<li><h2>{{sub_msg3}}</h2></li>
<li><h2>{{sub_msg4}}</h2></li>
<h2>{{sub_msg5}}</h2>
<h2>{{sub_msg6}}</h2>
<h2>{{sub_msg7}}</h2>
<h2>{{sub_msg8}}</h2>
<h2>{{sub_msg9}}</h2>
</ul>
</body>
</html>
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>{{head_msg}}</h1>
<ul>
<li><h2>{{sub_msg1}}</h2></li>
<li><h2>{{sub_msg2}}</h2></li>
<li><h2>{{sub_msg3}}</h2></li>
<li><h2>{{sub_msg4}}</h2></li>
<h2>{{sub_msg5}}</h2>
<h2>{{sub_msg6}}</h2>
<h2>{{sub_msg7}}</h2>
<h2>{{sub_msg8}}</h2>
<h2>{{sub_msg9}}</h2>
</ul>
</body>
</html>
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>{{head_msg}}</h1>
<ul>
<li><h2>{{sub_msg1}}</h2></li>
<li><h2>{{sub_msg2}}</h2></li>
<li><h2>{{sub_msg3}}</h2></li>
<li><h2>{{sub_msg4}}</h2></li>
<h2>{{sub_msg5}}</h2>
<h2>{{sub_msg6}}</h2>
<h2>{{sub_msg7}}</h2>
<h2>{{sub_msg8}}</h2>
<h2>{{sub_msg9}}</h2>
<h2>{{sub_msg10}}</h2>
<h2>{{sub_msg11}}</h2>
<h2>{{sub_msg12}}</h2>
<h2>{{sub_msg13}}</h2>
<h2>{{sub_msg14}}</h2>
<h2>{{sub_msg15}}</h2>
<h2>{{sub_msg16}}</h2>
</ul>
</body>
</html>
padding: 0;
margin: 0;
box-sizing: border-box;
.navbar{
height: 80px;
width: auto;
background-color: aqua;
color: red;
display: flex;
align-items: center;
justify-content: space-evenly;
.nav-logo{
color: white;
font-size: 32px;
.navbar a{
text-decoration: none;
display: flex;
align-items: center;
justify-content: space-evenly;
color: white;
font-size: 32px;
img{
height: 500px;
width: 500px;
margin: 0%20%;
h1{
color: brown;
Output: