# -*- coding: utf-8 -*-

import os
import secrets
from datetime import datetime

from allauth.account.models import EmailAddress
from django.conf import settings
from django.forms.models import model_to_dict
from django.utils.safestring import mark_safe
from djtools.utils.mail import send_mail


PROFESSIONAL_PROGRAMS = [
    'aerospaceoutreach',
    'highereducationinitiatives',
    'industryinternship',
    'nasacompetition',
    'researchinfrastructure',
    'specialinitiatives',
]
# rocket launch required files by competition. this will do until
# we change the data model to have a separate table for their files
MRL_REQUIRED_FILES = [
    'preliminary_design_report',
    'flight_readiness_report',
    'education_outreach',
    'post_flight_performance_report',
    'proceeding_paper',
]
FNL_REQUIRED_FILES = [
    'budget',
    'flight_demo',
    'preliminary_design_report',
    'final_motor_selection',
    'lodging_list',
    'critical_design_report',
    'oral_presentation',
    'post_flight_performance_report',
]
CRL_REQUIRED_FILES = [
    'budget',
    'flight_demo',
    'interim_progress_report',
    'final_design_report',
    'education_outreach',
    'oral_presentation',
    'post_flight_performance_report',
    'proceeding_paper',
]


def get_start_date():
    """Obtain the start date for the current grant cycle."""
    now = datetime.now()
    year = now.year