Overview
As a student in Relaciona, you can join classes using unique invite codes provided by your teachers. Once you join a class, you’ll be able to play games with your classmates and view their profiles (if they choose to share).How to Join a Class
Register Your Account
If you haven’t already, create your student account by providing:
- Username
- Email address
- Password
- Select “Alumno” (Student) as your role
Log In
Sign in with your username and password. You’ll be redirected to your student homepage after successful login (accounts/views.py:29).
Enter Invite Code
Enter the 6-character invite code (combination of uppercase letters and numbers) provided by your teacher.The system will:
- Verify the code exists in the database
- Check if you’re already a member
- Add you to the class if the code is valid
Invite codes are case-sensitive and automatically converted to uppercase (accounts/views.py:150)
Joining Multiple Classes
Multiple Class Enrollment
Students can join multiple classes! Each class you join:
- Has its own unique invite code
- Allows you to play games with those specific classmates
- Lets you view profiles of students who share their information
- Is managed by a different teacher (or the same one)
After Joining
Once you’ve successfully joined a class:Access to Games
Access to Games
You can play various minigames with your classmates, including:
- Face recognition games
- Name matching games
- Profile guessing games
- Spotify song guessing
- And more!
View Classmates
View Classmates
You can see profiles of classmates who have enabled the “share_with_class” setting. The system ensures you can only view profiles of students who:
- Share at least one class with you
- Have opted to share their profile (accounts/views.py:91-94)
Complete Your Profile
Complete Your Profile
Consider completing your own profile so classmates can get to know you better! See Completing Your Profile for details.
Troubleshooting
Invalid Code Error
If you receive an error message “El código introducido no es válido”:- Double-check the code with your teacher
- Ensure all 6 characters are correct
- Make sure there are no spaces before or after the code
- Verify you’re entering uppercase letters and numbers only
Already a Member
If you try to join a class you’re already in, you’ll simply see a confirmation message. This won’t cause any issues with your existing membership.No Classes Found
If you haven’t joined any classes yet:- You’ll see a message when trying to access games
- Make sure to get an invite code from your teacher first
- Complete the joining process before accessing class features
Technical Details
For Developers:
- Invite codes are 6-character unique strings generated from uppercase letters and digits (teachers/models.py:6-8)
- The join process is handled by the
join_group_by_codeview (accounts/views.py:144-169) - Students are linked to ClassGroup via a ManyToMany relationship (teachers/models.py:17-21)
- Code validation uses Django’s
get_object_or_404pattern for security