Campus Connections with the College Social Network Web Project
Introduction
In today’s digitized world, the importance of staying connected has transcended into educational environments. Our revamped College Social Network Web Project is a step towards enhancing these connections within a college campus. Offering unique logins for students, administrators, placement officers, and staff, this platform serves as a one-stop solution for all campus-related updates and interactions.
Features and Functionalities
- Multiple User Profiles: The platform offers specialized logins for students, administrators, placement officers, and teaching staff, ensuring that each user group has tailored experiences and functionalities.
- Event Notifications: Whether it’s an upcoming seminar, fresher’s party, or placement drive, all college events are posted on this platform. These posts can only be made by the staff, placement officer, and administrator accounts to ensure verified and trustworthy information.
- Real-Time SMS Notifications: Upon the publication of a new event or announcement, students receive instant notifications via SMS, ensuring they never miss any important updates.
- Academic Tracking: The platform also supports an academic tracking feature, where staff members can easily access analytics related to student performance and attendance.
- Grievance Redressal: It offers a special section for students to post grievances about any inconsistencies or issues they face in college. These posts are visible only to the administrators, thereby maintaining confidentiality.
Advantages
- Enhanced Socialization: The platform allows students to connect with their peers easily, facilitating more friendships and networking opportunities.
- Up-to-Date Information: With real-time notifications, students are always in the loop about important announcements and events.
- Knowledge Sharing: The platform allows for the exchange of educational materials, thoughts, and perspectives among students.
- Offline Message Viewing: Unlike other platforms, students don’t need to be online to read new messages. They can view these messages offline, making it more convenient.
Conclusion
Our College Social Network Web Project is not just a website; it’s a comprehensive tool designed to enhance the academic and social experiences of everyone on campus. With a plethora of features and functionalities, it ensures streamlined communication and real-time updates, making it an indispensable asset for modern colleges.
Sample Code
File: ‘app.py
‘
from flask import Flask, render_template, request, redirect, url_for, flash
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
app.secret_key = 'supersecretkey'
db = SQLAlchemy(app)
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20), unique=True, nullable=False)
password = db.Column(db.String(60), nullable=False)
user_type = db.Column(db.String(20), nullable=False)
@app.route("/", methods=['GET', 'POST'])
def login():
if request.method == 'POST':
username = request.form.get('username')
password = request.form.get('password')
user_type = request.form.get('user_type')
user = User.query.filter_by(username=username, password=password, user_type=user_type).first()
if user:
flash('Login successful for ' + user_type, 'success')
return redirect(url_for('dashboard', user_type=user_type))
else:
flash('Login unsuccessful. Please check your username and password', 'danger')
return render_template('login.html')
@app.route("/dashboard/<string:user_type>")
def dashboard(user_type):
return render_template('dashboard.html', user_type=user_type)
if __name__ == '__main__':
db.create_all()
app.run(debug=True)
File: ‘login.html
‘
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
</head>
<body>
<form method="post">
<input type="text" name="username" placeholder="Username" required>
<input type="password" name="password" placeholder="Password" required>
<select name="user_type">
<option value="student">Student</option>
<option value="admin">Administrator</option>
<option value="staff">Staff</option>
</select>
<button type="submit">Login</button>
</form>
</body>
</html>
File: ‘dashboard.html
‘
<!DOCTYPE html>
<html>
<head>
<title>Dashboard</title>
</head>
<body>
<h1>Welcome to {{ user_type }} Dashboard</h1>
</body>
</html>
pip install Flask Flask-SQLAlchemy
In order to download the PDF, You must follow on Youtube. Once done, Click on Submit
Follow On YoutubeSubscribed? Click on Confirm