College Management System Project in Django with Source Code
The College Management System Project in Django is created using Python Django Framework. The system is built fully in Django Framework in back-end and HTML, CSS and JavaScript in front-end. Basically, the project includes tutorials and guides for creating a code.
This Python Django College Management System can manage the attendance, manage classes, manage a department, manage courses, manage students, manage teachers, manage users, and can manage marks. The system includes crud operations and it is stored in the database file.
This College Management System Project in Django also includes a Download Source Code for free, just find the downloadable source code below and click download now.
Watch the video here to see the full running College Management System Project In Django With Source code
To start creating a College Management System Project in Django, makes sure that you have PyCharm Professional IDE Installed in your computer.
Features of College Management System Project in Django
- Dashboard – For the dashboard, you will be able to all the basic access in the whole system. Such as assign classes, teachers and course, attendance, classes, courses, departments, marks, students, teachers, and users.
- Sign Up– For the signup, you will fill the forms. Such as your username, password and email address.
- Login – For the login, you must log in first before you can add your orders.
- Manage teacher– The admin has access to the teacher. He can add, update and delete the teacher.
- Manage course–The admin has access to the course. He can add, update and delete the course.
- Departments– The admin has access to the departments. He can add, update and delete the departments.
- Manage Student– the student can register and update their profile. In short, this system has a student management system feature.
- Manage users–The admin has access to the users. He can add, update and delete the users and also the admin can change the password.
Steps on how to create a College Management System Project in Django With Source Code
College Management System Project in Django With Source Code
- Step 1: Open file.
First, open “pycharm professional” after that click “file” and click “new project“.
- Step 2: Choose Django.
Second, after click “new project“, choose “Django” and click.
- Step 3: Select file location.
Third, select a file location wherever you want.
- Step 4: Create application name.
Fourth, name your application.
- Step 5: Click create.
Fifth, finish creating project by clicking “create” button.
- Step 6: Start Coding.
In this final step, we will now start adding functionality to our Django Framework by adding some functional codes.
This are the module to add functionality for College Management System Project in Django
- Create template for the student dashboard in College Management System Project in Django.
In this section, we will learn on how create a templates for the dashboard. To start with, add the following code in your homepage.html under the folder of template/info files.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>homepage</title> {% load static %} <!-- Bootstrap core CSS --> <link href="{% static '/info/homepage/vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet"> <!-- Custom styles for this template --> <link href="{% static '/info/homepage/css/heroic-features.css' %}" rel="stylesheet"> <link href="{% static '/info/bootstrap/vendor/fontawesome-free/css/all.min.css' %}" rel="stylesheet" type="text/css"> </head> <body> <!-- Navigation --> <nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top"> <div class="container"> <a class="navbar-brand" href="{% url 'index' %}">College Management System</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarResponsive"> <ul class="navbar-nav ml-auto"> <li class="nav-item"> <a class="nav-link text-capitalize">{{ request.user.student.name }}</a> </li> <li class="nav-item"> <a class="nav-link" href="#" data-toggle="modal" data-target="#logoutModal">Logout</a> </li> </ul> </div> </div> </nav> <!-- Page Content --> <div class="container"> <!-- Jumbotron Header --> <header class="jumbotron my-4" style="background-color: blue; color:white;"> <h1 class="display-3 text-capitalize" >Welcome {{ request.user.student.name }}</h1> {# <p class="lead"></p>#} {# <a href="#" class="btn btn-primary btn-lg">Call to action!</a>#} </header> <!-- Page Features --> <div class="row text-center"> <div class="col-lg-3 col-md-6 mb-4"> <div class="card"> <a href="{% url 'attendance' request.user.student.USN %}"> <img class="card-img-top" src="{% static 'info/images/attendance3.jpg' %}" alt=""> </a> <div class="card-body"> <h4 class="card-title">Attendance</h4> <p class="card-text">View the attendance status for each of your courses. The attendance of each course is also displayed as list of classes that were conducted.</p> </div> <div class="card-footer"> <a class="btn btn-success" role="button" href="{% url 'attendance' request.user.student.USN %}"> View Attendance</a> </div> </div> </div> <div class="col-lg-3 col-md-6 mb-4"> <div class="card"> <a href="{% url 'marks_list' request.user.student.USN %}"> <img class="card-img-top" src="{% static 'info/images/marks1.jpg' %}" alt=""> </a> <div class="card-body"> <h4 class="card-title">Marks</h4> <p class="card-text">View the marks obtained for each of your courses. These include the marks of 3 internal assessment, 2 events and the Semester End Exam </p> </div> <div class="card-footer"> <a class="btn btn-success" role="button" href="{% url 'marks_list' request.user.student.USN %}">View Marks</a> </div> </div> </div> <div class="col-lg-3 col-md-6 mb-4"> <div class="card"> <a href="{% url 'timetable' request.user.student.class_id_id %}"> <img class="card-img-top" src="{% static 'info/images/timetable.jpg' %}" alt=""> </a> <div class="card-body"> <h4 class="card-title">TimeTable</h4> <p class="card-text">View the timetable in a tabular form. The timetable displays all the courses of the student and the time and day at which they are conducted.</p> </div> <div class="card-footer"> <a class="btn btn-success" role="button" href="{% url 'timetable' request.user.student.class_id_id %}">View TimeTable</a> </div> </div> </div> </div> <!-- /.row --> </div> <!-- /.container --> <!-- Logout Modal--> <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5> <button class="close" type="button" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body">Select "Logout" below if you are ready to end your current session.</div> <div class="modal-footer"> <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button> <a class="btn btn-primary" href="/accounts/logout">Logout</a> </div> </div> </div> </div> <!-- Bootstrap core JavaScript --> <script src="{% static '/info/homepage/vendor/jquery/jquery.min.js' %}"></script> <script src="{% static '/info/homepage/vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>homepage</title> {% load static %} <!-- Bootstrap core CSS --> <link href="{% static '/info/homepage/vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet"> <!-- Custom styles for this template --> <link href="{% static '/info/homepage/css/heroic-features.css' %}" rel="stylesheet"> <link href="{% static '/info/bootstrap/vendor/fontawesome-free/css/all.min.css' %}" rel="stylesheet" type="text/css"> </head> <body> <!-- Navigation --> <nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top"> <div class="container"> <a class="navbar-brand" href="{% url 'index' %}">College Management System</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarResponsive"> <ul class="navbar-nav ml-auto"> <li class="nav-item"> <a class="nav-link text-capitalize">{{ request.user.student.name }}</a> </li> <li class="nav-item"> <a class="nav-link" href="#" data-toggle="modal" data-target="#logoutModal">Logout</a> </li> </ul> </div> </div> </nav> <!-- Page Content --> <div class="container"> <!-- Jumbotron Header --> <header class="jumbotron my-4" style="background-color: blue; color:white;"> <h1 class="display-3 text-capitalize" >Welcome {{ request.user.student.name }}</h1> {# <p class="lead"></p>#} {# <a href="#" class="btn btn-primary btn-lg">Call to action!</a>#} </header> <!-- Page Features --> <div class="row text-center"> <div class="col-lg-3 col-md-6 mb-4"> <div class="card"> <a href="{% url 'attendance' request.user.student.USN %}"> <img class="card-img-top" src="{% static 'info/images/attendance3.jpg' %}" alt=""> </a> <div class="card-body"> <h4 class="card-title">Attendance</h4> <p class="card-text">View the attendance status for each of your courses. The attendance of each course is also displayed as list of classes that were conducted.</p> </div> <div class="card-footer"> <a class="btn btn-success" role="button" href="{% url 'attendance' request.user.student.USN %}"> View Attendance</a> </div> </div> </div> <div class="col-lg-3 col-md-6 mb-4"> <div class="card"> <a href="{% url 'marks_list' request.user.student.USN %}"> <img class="card-img-top" src="{% static 'info/images/marks1.jpg' %}" alt=""> </a> <div class="card-body"> <h4 class="card-title">Marks</h4> <p class="card-text">View the marks obtained for each of your courses. These include the marks of 3 internal assessment, 2 events and the Semester End Exam </p> </div> <div class="card-footer"> <a class="btn btn-success" role="button" href="{% url 'marks_list' request.user.student.USN %}">View Marks</a> </div> </div> </div> <div class="col-lg-3 col-md-6 mb-4"> <div class="card"> <a href="{% url 'timetable' request.user.student.class_id_id %}"> <img class="card-img-top" src="{% static 'info/images/timetable.jpg' %}" alt=""> </a> <div class="card-body"> <h4 class="card-title">TimeTable</h4> <p class="card-text">View the timetable in a tabular form. The timetable displays all the courses of the student and the time and day at which they are conducted.</p> </div> <div class="card-footer"> <a class="btn btn-success" role="button" href="{% url 'timetable' request.user.student.class_id_id %}">View TimeTable</a> </div> </div> </div> </div> <!-- /.row --> </div> <!-- /.container --> <!-- Logout Modal--> <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5> <button class="close" type="button" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body">Select "Logout" below if you are ready to end your current session.</div> <div class="modal-footer"> <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button> <a class="btn btn-primary" href="/accounts/logout">Logout</a> </div> </div> </div> </div> <!-- Bootstrap core JavaScript --> <script src="{% static '/info/homepage/vendor/jquery/jquery.min.js' %}"></script> <script src="{% static '/info/homepage/vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script> </body> </html> |
After adding the code, you may click the run button to test the code. The output should look like as shown below.

- Create template for the student attendance in College Management System Project in Django.
In this section, we will learn how to create a template for student attendance. To start with, add the following code in your attendance.html under the folder of template/info files.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
{% extends 'info/base.html' %} {% load static %} {% block content %} <div class="card mb-3"> <div class="card-header"> <i class="fas fa-table"></i> <b>Attendance</b></div> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered text-center" id="dataTable" width="100%" cellspacing="0" > <thead> <tr style="background-color: blue;color:white;"> <th>Course ID</th> <th>Course name</th> <th>Attended classes</th> <th>Total classes</th> <th>Attendance %</th> <th>Classes to attend</th> </tr> </thead> <tbody> {% for a in att_list %} <tr> <td style="background-color: green;color:white;">{{ a.course_id }}</td> <td><a href="{% url 'attendance_detail' a.student.USN a.course.id %}">{{a.course.name}}</a></td> <td>{{ a.att_class }}</td> <td>{{ a.total_class }}</td> {% if a.attendance < 75 %} <td class="p-3 mb-2 bg-dark text-white">{{ a.attendance }}</td> {% else %} <td class="p-3 mb-2 bg-primary text-white">{{ a.attendance }}</td> {% endif %} <td>{{ a.classes_to_attend }}</td> </tr> {% empty %} <p>student has no courses</p> {% endfor %} </tbody> </table> </div> </div> </div> {% endblock %} |
After adding the code, you may click the run button to test the code. The output should look like as shown below.

- Create template for the student marks in College Management System Project in Django.
In this section, we will learn how to create a template for the student marks. To start with, add the following code in your marks_list.html under the folder of template/info files.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
{% extends 'info/base.html' %} {% load static %} {% block content %} <div class="card mb-3"> <div class="card-header"> <i class="fas fa-table"></i> <b>Marks</b></div> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> <thead> <tr style="background-color: blue; color:white;"> <th>Course ID</th> <th>Course name</th> <th>Prelim Exam</th> <th>MidTerm Exam</th> <th>Final Exam</th> <th>Short Quiz</th> <th>Long Quiz</th> <th>Weekly Quiz</th> </tr> </thead> <tbody> {% for sc in sc_list %} <tr> <td style="background-color: green; color:white;">{{ sc.course_id }}</td> <td>{{sc.course.name}}</td> {% for m in sc.marks_set.all %} <td>{{ m.marks1 }}</td> {% endfor %} </tr> {% empty %} <p>student has no courses</p> {% endfor %} </tbody> </table> </div> </div> </div> {% endblock %} |
After adding the code, you may click the run button to test the code. The output should look like as shown below.

- Create template for the student time table in College Management System Project in Django.
In this section, we will learn how to create a template for the student timetable. To start with, add the following code in your timetable.html under the folder of template/info files.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
{% extends 'info/base.html' %} {% block content %} <div class="container"> <div class="container"> <div class="row"> <div class="col-md-12"> <h2 class="text-center"> Timetable </h2> </div> <div id="no-more-tables"> <table class="col-sm-12 table table-bordered table-striped table-condensed cf"> <thead class="cf" style="background-color: blue; color:white;"> <tr> <th> </th> <th>7:30 - 8:30</th> <th>8:30 - 9:30</th> <th>9:30 - 10:30</th> <th>Break</th> <th>11:00 - 11:50</th> <th>11:50 - 12:40</th> <th>12:40 - 1:30</th> <th>Lunch</th> <th>2:30 - 3:30</th> <th>3:30 - 4:30</th> <th>4:30 - 5:30</th> </tr> </thead> <tbody> {% for i in matrix %} <tr> {% for j in i %} {% if forloop.counter == 1 %} <td style="background-color: green; color:white;"><b>{{ j }}</b></td> {% else %} <td>{{ j }}</td> {% endif %} {% endfor %} </tr> {% endfor %} </tbody> </table> </div> </div> </div> </div> {% endblock %} |
After adding the code, you may click the run button to test the code. The output should look like as shown below.

Run Quick Virus Scan for secure Download
Run Quick Scan for safe DownloadDownloadable Source Code Below.
Anyway, if you want to level up your programming knowledge, especially python, try this new article I’ve made for you Best Python Projects with source code for Beginners. But If you’re going to focus on web development using Django, you can download here from our list of Best Django Projects with source code based on real-world projects.
How To Run The College Management System Project in Django With Source Code?
Step 1: Extract/unzip the file
Step 2: Go inside the project folder, open cmd and type the following commands to install Django Framework and run the webserver:
- python manage.py runserver
Step 3: Finally, open the browser and go to http://127.0.0.1:8000/
Admin Login:
- username: admin
- password: admin12345678
Student Login:
- username: alexander
- password: admin12345
Teacher Login:
- username: saxon
- password: ong12345
Summary
In summary, this 2021 College Management System Project in Django With Source Code can be useful to students or professional who wants to learn python programming language. This project can also be modified to fit your personal requirements. Hope this project will help you to improve your skills. Happy Coding!
- How To Make A Point Of Sale System In Python
- Best Python Projects for Beginners
- Python MySQL Connection: Simple Python Step by Step Guide
- Python PIP Command Set-up / Fix: Step by Step Guide
- Random Password Generator in Python Projects With Source Code 2020
- Python Range Function|Range in Python Explained with Examples 2020
- School Management System Project In Django With Source Code
- Django Login And Registration With Source Code
- CRUD App In Django With Source Code
- Drag And Drop JavaScript With Source Code
- Todo List App Django With Source Code
Inquiries
If you have any questions or suggestions about College Management System Project in Django With Source Code, please feel free to leave a comment below.