Overview
In Relaciona, teachers organize students into Class Groups. Each class group has a unique name, an automatically generated invite code, and can contain multiple students. This guide walks you through creating and configuring your first class.Every class group automatically receives a unique 6-character invite code when created. This code is used for student enrollment and class identification.
Creating a New Class Group
Navigate to Class Creation
From your teacher dashboard, click on “Crear Grupo” (Create Group) or navigate to
/crear/ to access the class creation form.Enter Class Details
Fill in the required information:
- Nombre del grupo (Class Name): Choose a descriptive name for your class (e.g., “Mathematics 2026”, “Science Group A”)
- The class name can be up to 100 characters long
The invite code will be generated automatically when you save the class - you don’t need to create one manually.
Add Initial Students (Optional)
You can optionally add students during class creation:
- Select students from the checkbox list showing all available students in the system
- Multiple students can be selected at once
- You can also add students later from the class detail page
Save and Generate Invite Code
Click “Guardar” (Save) to create your class group.When you save:
- The system automatically generates a unique 6-character invite code (uppercase letters and digits)
- The code is verified for uniqueness across all class groups
- You’re redirected to your class groups list at
/mis-grupos/
Understanding Invite Codes
Invite codes are a key feature of Relaciona’s class management system:Auto-Generated
Each class receives a unique 6-character code automatically when created
Unique & Verified
The system ensures no two classes share the same invite code
Alphanumeric
Codes use uppercase letters (A-Z) and digits (0-9) for easy sharing
Permanent
Once generated, the invite code remains with the class throughout its lifecycle
How Invite Codes Work
The invite code generation happens automatically in theClassGroup model:
Class Configuration
After creating a class, you can configure additional settings:Viewing Your Class
Once created, your class appears in:- Class List (
/mis-grupos/): Shows all classes you teach - Class Detail (
/grupo/<id>/): Displays the invite code, student roster, and learning styles
Managing Class Information
From the class detail page, you can:View Class Statistics
Access learning style distribution (VARK results) for all students in the class
Best Practices for Organizing Classes
Use Descriptive Names
Include the subject, grade level, or academic year in your class name:
- ✅ “Biology 10th Grade - 2026”
- ✅ “Mathematics Group A”
- ❌ “My Class”
Start Small
Create the class first, then add students gradually as they register. You don’t need to add all students during creation.
Share Invite Codes Clearly
Display the invite code prominently to students:
- Write it on the board
- Include it in welcome emails
- Add it to your course syllabus
Keep Classes Current
Create new class groups for each academic term or year to keep your student lists organized and relevant.
What Happens After Creation
Once your class is created:- You’re assigned as the teacher - The class is linked to your teacher profile (
teachers/views.py:19) - Students are associated - Any selected students are added to the many-to-many relationship
- The invite code is stored - Your unique code is saved and displayed in the class detail view
- You can start tracking - Student participation in questionnaires (VARK, Chapman) and games becomes visible
Next Steps
Managing Students
Learn how to add, remove, and view student profiles in your class
Viewing Analytics
Understand how to track student engagement and learning styles
Technical Reference
Key Files:- Model definition:
teachers/models.py:10-43 - Creation view:
teachers/views.py:10-26 - Form configuration:
teachers/forms.py:5-18 - URL routing:
teachers/urls.py:8
name: CharField (max 100 characters)teacher: ForeignKey to UserProfilestudents: ManyToManyField to UserProfile (filtered by role=‘student’)invite_code: CharField (max 10 characters, unique)