You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The login does not send to /start/ anymore. Also, the wizard is too many steps. Even after completing the wizard, there are still more steps (e.g., creating and enrolling a student).
Simplify!
Remove old wizard views
After first sign in, show a single form that:
creates a school year
creates a grade level
creates a course
creates a course task
creates a student
creates an enrollment
welcomes people, explains the app, explains the core data model
Add Profile.onboarding_complete (default to False) - initially default to True for exist users
Add middleware that launches the form and no other available action
Add start view
Add template
Add landing after completion
Bonus: date picker?
Bonus: placeholder text that represent the current year and current year + 1 for the start and end date
The text was updated successfully, but these errors were encountered:
mblayman
changed the title
Sign up experience seems broken
Sign up experience is broken
Feb 28, 2025
def get_school_year_dates():
"""
Calculate school year start and end dates based on today's date.
Using typical USA school schedule: Early September to early June.
"""
current_date = datetime.now()
current_year = current_date.year
# Determine which school year we're in based on today's date
# If we're after June 15, we're in the next school year
if current_date.month > 6 or (current_date.month == 6 and current_date.day > 15):
start_year = current_year
end_year = current_year + 1
else:
start_year = current_year - 1
end_year = current_year
# Define typical school year dates
# Start: September 1st of start_year (or closest weekday)
# End: June 10th of end_year (or closest weekday)
start_date = date(start_year, 9, 1)
end_date = date(end_year, 6, 10)
return {
"start_date": start_date,
"end_date": end_date
}
# Use These fields in your django form
start_date = forms.DateTimeField(label='Start Date',
initial=get_school_year_dates()['start_date'].isoformat(),
widget=forms.DateTimeInput(attrs={'type': 'date'}),
)
end_date = forms.DateTimeField(label='End Date',
initial=get_school_year_dates()['end_date'].isoformat(),
widget=forms.DateTimeInput(attrs={'type': 'date'}),
)
The login does not send to
/start/
anymore. Also, the wizard is too many steps. Even after completing the wizard, there are still more steps (e.g., creating and enrolling a student).Simplify!
Profile.onboarding_complete
(default to False) - initially default to True for exist usersThe text was updated successfully, but these errors were encountered: