Spaces:
Sleeping
Sleeping
Update config.py
Browse filesUse in memory cache and sqlite db
config.py
CHANGED
@@ -1,41 +1,41 @@
|
|
1 |
-
from pathlib import Path
|
2 |
-
|
3 |
-
# ENV when using standalone uvicorn server running FastAPI in api directory
|
4 |
-
ENV_PATH = Path("../env/api.env")
|
5 |
-
|
6 |
-
ONE_DAY_SEC = 24*60*60
|
7 |
-
|
8 |
-
ONE_WEEK_SEC = ONE_DAY_SEC*7
|
9 |
-
|
10 |
-
# Cache
|
11 |
-
USE_REDIS_CACHE =
|
12 |
-
|
13 |
-
# Postgres
|
14 |
-
USE_POSTGRES_DB =
|
15 |
-
|
16 |
-
|
17 |
-
DESCRIPTION = """
|
18 |
-
This API is the backend of the student management system.\n
|
19 |
-
|
20 |
-
Manages students, instructors, courses, and enrollments within an educational institution.\n
|
21 |
-
|
22 |
-
Provides functionalities to manage students, instructors, and courses, as well as
|
23 |
-
to enroll students in courses and assign grades.\n
|
24 |
-
|
25 |
-
- Add, remove, and update students and instructors
|
26 |
-
- Add, remove, and update courses
|
27 |
-
- Enroll students in courses
|
28 |
-
- Assign grades to students for specific courses
|
29 |
-
- Retrieve a list of students enrolled in a specific course
|
30 |
-
- Retrieve a list of courses a specific student is enrolled in
|
31 |
-
|
32 |
-
|
33 |
-
### GitHub
|
34 |
-
[ D0nG4667](https://github.com/D0nG4667/Student-Management-System)
|
35 |
-
|
36 |
-
### Explore this api below
|
37 |
-
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
|
38 |
-
|
39 |
-
|
40 |
-
© 2024, Made with 💖 [Gabriel Okundaye](https://www.linkedin.com/in/dr-gabriel-okundaye)
|
41 |
-
"""
|
|
|
1 |
+
from pathlib import Path
|
2 |
+
|
3 |
+
# ENV when using standalone uvicorn server running FastAPI in api directory
|
4 |
+
ENV_PATH = Path("../env/api.env")
|
5 |
+
|
6 |
+
ONE_DAY_SEC = 24*60*60
|
7 |
+
|
8 |
+
ONE_WEEK_SEC = ONE_DAY_SEC*7
|
9 |
+
|
10 |
+
# Cache
|
11 |
+
USE_REDIS_CACHE = False # Change to True to use Redis Cache
|
12 |
+
|
13 |
+
# Postgres
|
14 |
+
USE_POSTGRES_DB = False # Change to True to use Posgres DB
|
15 |
+
|
16 |
+
|
17 |
+
DESCRIPTION = """
|
18 |
+
This API is the backend of the student management system.\n
|
19 |
+
|
20 |
+
Manages students, instructors, courses, and enrollments within an educational institution.\n
|
21 |
+
|
22 |
+
Provides functionalities to manage students, instructors, and courses, as well as
|
23 |
+
to enroll students in courses and assign grades.\n
|
24 |
+
|
25 |
+
- Add, remove, and update students and instructors
|
26 |
+
- Add, remove, and update courses
|
27 |
+
- Enroll students in courses
|
28 |
+
- Assign grades to students for specific courses
|
29 |
+
- Retrieve a list of students enrolled in a specific course
|
30 |
+
- Retrieve a list of courses a specific student is enrolled in
|
31 |
+
|
32 |
+
|
33 |
+
### GitHub
|
34 |
+
[ D0nG4667](https://github.com/D0nG4667/Student-Management-System)
|
35 |
+
|
36 |
+
### Explore this api below
|
37 |
+
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
|
38 |
+
|
39 |
+
|
40 |
+
© 2024, Made with 💖 [Gabriel Okundaye](https://www.linkedin.com/in/dr-gabriel-okundaye)
|
41 |
+
"""
|