3. Users, Calendar Events, and Admin Panel - Glchriste/Tutoring-Center-Calendar GitHub Wiki

Users, Calendar Events, and the Admin Panel

Users

There is a "student" user with the username: student and password: student. There is also an admin account for tutors to log-in with (username: admin password: admin).

By default, a user is not logged in when they first view the website. However, if the form to make an appointment is submitted, the user is automatically logged in as a student. Tutors need to manually log-in as an admin using the "login" button (http://localhost:8000/login/) or via the admin panel found here: http://localhost:8000/admin/.

Calendar Events

The Calendar Events are handled by Django, thanks to Django's ability to turn classes in "models.py" into database objects, and are stored in a local sqlite file. These database objects are serialized into a json file that can be found at: http://localhost:8000/portal/json/.

Both "open appointments" (i.e., an open time slot for a student to claim) and "scheduled appointments" are stored in the same json file. However, different events are displayed to different users. Students (or users who are not logged in) can only see "open appointments," and the tutor(s), also referred to as the admin(s), see scheduled appointments only.

Tutors can create, edit, or delete "open appointments" and "scheduled appointments" manually via the admin panel if needed.

Admin Panel

When logged in as admin at ``http://localhost:8000/admin/`, you will have access to users, groups, and calendar events.

Users, groups, and calendar events can be manually created, edited, or deleted when logged in as an admin.