Overview
Your student profile in Relaciona is where you share information about yourself with classmates and teachers. A complete profile helps build connections and makes the games more engaging.Profile Fields
The student profile includes personal information, preferences, and reflection questions. All fields are defined in accounts/models.py:5-74.Basic Information
Profile Picture
Upload a photo using Cloudinary integration (accounts/models.py:18)Field:
profile_picture (CloudinaryField)Your profile picture is used in face recognition games and helps classmates identify you!
Date of Birth
Your birthday (accounts/models.py:19)Field:
date_of_birth (DateField)Used to calculate your age for games and classmate information.Gender
Select from: Masculino, Femenino, or Otro (accounts/models.py:20)Field:
gender
Choices: male, female, otherInterests and Preferences
Favorite Song
Field:
favorite_song (max 100 characters)The name of your favorite song (accounts/models.py:28)Spotify Link
Field:
spotify_link (URL, max 500 characters)Paste the Spotify song link (Share > Copy Song Link)Used in the Spotify guessing game! The system automatically converts your share link to an embed player (accounts/models.py:60-71)Favorite Artist
Field:
favorite_artist (max 100 characters)Your favorite music artist or band (accounts/models.py:29)Favorite Movie
Field:
favorite_movie (max 100 characters)A movie you could watch over and over (accounts/models.py:30)Favorite Place
Field:
favorite_place (max 255 characters)Your favorite place in the world - can be a country, city, or monument (accounts/models.py:32)Reflection Questions
These fields help you share deeper thoughts and build meaningful connections with classmates.Motivation
Motivation
Question: “¿Cuál es tu mayor motivación?” (What is your greatest motivation?)Field:
motivation (TextField, unlimited length)Share what drives and inspires you (accounts/models.py:34)Gratitude
Gratitude
Question: “¿Por qué estás más agradecido en tu vida?” (What are you most grateful for in your life?)Field:
gratitude (TextField, unlimited length)Reflect on what you’re thankful for (accounts/models.py:37-41)Happy Memory
Happy Memory
Question: “¿Cuál es tu recuerdo más feliz?” (What is your happiest memory?)Field:
happy_memory (TextField, unlimited length)Share a moment that makes you smile (accounts/models.py:43-46)Privacy Settings
Share with Class
Editing Your Profile
Navigate to Edit Profile
Access the profile editing page from your student homepage (accounts/views.py:51-64)
Fill Out Fields
Complete any fields you wish to share. Remember, all fields are optional!The form uses the StudentProfileForm defined in accounts/forms.py:17-62
Upload Profile Picture
Click the file input to select an image from your device. The image is securely stored using Cloudinary.
Add Spotify Link
To add your favorite song:
- Open Spotify and find your song
- Click Share > Copy Song Link
- Paste the entire link into the field
The system automatically converts Spotify share links to embeddable players (accounts/models.py:60-71)
Set Privacy
Check the “¿Quieres compartir esta información con la clase?” (Do you want to share this information with the class?) box if you want classmates to see your profile.
Viewing Your Profile
You can view your own profile at any time from the student dashboard (accounts/views.py:67-73). This shows you exactly what others will see if you enable profile sharing.Profile in Games
Your profile information is used in various ways across different games:Face Recognition Games
- Uses your
profile_picture - Accepts
username,full_name, ornicknameas answers - See minigames/views.py:53-121
Interest Matching
- Uses
date_of_birth(age calculation) - Shows
favorite_artist - Displays
motivation - See minigames/views.py:258-297
Spotify Guessing
- Plays your
spotify_link(converted to embed) - Classmates guess which song is yours
- See minigames/views.py:389-437
Complete Profile Game
- Combines multiple fields
- Tests how well classmates know you
- See minigames/views.py:337-386
Required vs Optional Fields
Always Required
- Username (set during registration)
- Email (set during registration)
- Password (set during registration)
- Role: Student (set during registration)
Optional Profile Fields
All profile fields in the StudentProfileForm are optional (accounts/forms.py:20-25):- Full name
- Profile picture
- Date of birth
- Gender
- Residence area
- Celebrate birthday
- Nickname
- Favorite song
- Spotify link
- Favorite artist
- Favorite movie
- Favorite place
- Motivation
- Gratitude
- Happy memory
- Share with class
Technical Details
For Developers:
- Profile model:
UserProfileextendsAbstractUser(accounts/models.py:5) - Form handling:
StudentProfileForm(accounts/forms.py:17-62) - Cloudinary integration for image uploads (accounts/models.py:18)
- Spotify embed URL transformation via property method (accounts/models.py:59-71)
- Privacy filtering in queries using
share_with_class=True(accounts/views.py:91-94) - Profile editing view with authentication required (accounts/views.py:51-64)