Giter Club home page Giter Club logo

college_management_system's Introduction

College Management System

Project Setup

  • Install Django
pip install django
  • Create django project CollegeManagementSystem
django-admin startproject CollegeManagementSystem
  • Create django app Student
python manage.py startapp Student
  • Create templates directory in CollegeManagementSystem project root directory
mkdir templates
  • Create templates directory in student app root directory
  • Add Student app in the CollegeManagementSystem/settings.py
  • Add templates directory with project's base directory in CollegeManagementSystem/setting.py
  • Initial project setup done
  • Run the initial migration:
python manage.py migrate
  • Run the server to check everything is working.
python manage.py runserver

Creating the Student Model

  • In Student/models.py create Student model.
  • Register Student model in Student/admin.py.
  • Make migrations to the database
python manage.py makemigrations
python manage.py migrate
  • Create superuser to get admin access
python manage.py createsuperuser

Creating the Views and URL patterns

  • In Students/views/py create view functions.
  • Create url patterns for each view in Student/urls.py.
  • Add Student.urls to projects urls.py.
  • Each URL endpoint works now, yet to implement CRUD.

First Read the Database

  • Go to the admin site and create some students.
  • Create base.html in project directory.
  • Create list.html in Student/templates/student directory.

Creating New Students

  • Create a forms.py file in Student app.
  • Create Student form field in create.html.
  • Create Student view function.

Update existing data

  • Update edit_student function.
  • Add edit.html in Student app.

Delete Student

  • Update delete_student function.
  • Add delete.html in Student app.

college_management_system's People

Contributors

sinkukumar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.