This project serves as a template for the Api of the system customized for the university. This Api system allows you to perform CRUD
operations on the data of students, teachers, semesters, and so on. Convenient, Competent and Short, without unnecessary things.
To install the project, follow these steps:
-
Clone the repository:
https://github.com/alexop89056/university-api-system.git
-
Navigate to the project directory:
cd university-api-system
-
Install dependencies:
pip install -r requirements.txt
/api
: This directory contains the main api endpoints./db_seeder
: This directory contains the script that fills the database with data./djangoTestApp
: This directory contains the main parent app./djangoTestApp/settings_local.py
: Not included in the repository, it is used to specify local project settings
-
With default django server:
python manage.py runserver
-
With gunicorn http server (
Supports only Linux-like systems
):gunicorn djangoTestApp.wsgi:application
Start filling in the database:
- Run django application in shell mode:
python manage.py shell
- Import we need the necessary function:
from db_seeder.seeds import function (example: students)
- Start filling in:
function() (example: students)
- File
settings_local.py
: Is used to overwrite settings fromsettings.py
, ysettings_local.py
file has more priority. - The Swagger UI URL is located at
/schema/swagger-ui
. - Access to the admin panel via the path
/admin
, Username:admin
, password:123
. Jwt tokens
are also connected to this project.
This project is licensed under the MIT License - see the main page for the details.