diaslucia / project-django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


APPSchool

πŸ”Ž About

This website was developed using Python + Django.

πŸš€ Ejecution

Steps to install and run the project:

  1. Clone the project

    git clone https://github.com/diaslucia/project-django.git
  2. Open your current directory project

    cd project-django
  3. Install

    pipenv install -r requirements.txt
  4. Move to project folder

    cd project
  5. Ejecute the app

    py manage.py runserver

🌐 URLS

  • AppSchool: to visit the homepage
  • AppSchool/courses: to access the list of courses and to be able to search an specific course
  • AppSchool/formCourse: to add a new course
  • AppSchool/students: to access the list of all students
  • AppSchool/formStudent: to add a new student
  • AppSchool/professors: to access the list of all professors
  • AppSchool/formProfessor: to add a new professor
  • AppSchool/login: to login
  • AppSchool/signup: to create a new account
  • AppSchool/logout: to logout
  • AppSchool/editProfile: to edit your profile information

πŸ“‚ Structure

The file structure is:

  • AppSchool: to store python files that build the project.
  • migrations: to store database migration files.
  • static: to store assets like images, css and scripts.
  • templates: to html files.

Views File

  • home: Renders the homepage.
  • formCourse: Handles new course creation via a form.
  • formStudent: Handles new student creation via a form.
  • formProfessor: Handles new professor creation via a form.
  • courses: Displays courses with a search form.
  • students: Displays all students.
  • professors: Displays all professors.
  • login_req: Displays a form to log in into your account.
  • signup: Displays a form to create a new user.
  • editProfile: Displays a form to edit your profile information.

Urls File

This file defines the URL patterns (routes) for a Django application, mapping specific URLs to corresponding views/functions, enabling access to different parts of the application: the home page, courses, student and professor creation forms, and lists of students and professors.

Models File

This File defines three Django models named Course, Student, and Professor, each with specific fields, allowing the application to store and manage information about courses, students, and professors in a relational database.

Forms File

The purpose of this file is to define Django form classes that specify the structure and validation rules for user input in the Django application.

About


Languages

Language:Python 63.1%Language:HTML 28.2%Language:CSS 8.7%