Wisconsin Space Grant Consortium grant programs application infrastructure.
-
create data model class in application/models.py
-
update the applications GM2MField in the UserProfile() data model class with the name of the new class e.g. 'application.NewDataModel',
-
create the form class and the form upload class in application/forms.py
-
for production, execute 'python manage.py migrate --run-syncdb' to create the new table(s). for staging or development, use migrations. if the table is created but the command barfed, check the django_content_type table to insure that the ContentType object was created. if not, do it manually.
-
update templates/dashboard/applications.inc.html to add the URL to the application form
-
create admin class in application/admin.py
-
create the email template for after submission and print view on admin dashboard
-
update application/views.py if need be
-
update templates/application/form.html if need be
-
update the UPLOAD_FORMS dictionary with the name of the model in lowercase: dashboard/views.py
add a new field:
- add to applications/models.py
virtual_cdr virtual_pdr virtual_frr
- in models.py, add timestamp method if it is a file field:
def virtual_cdr_timestamp(self): return self.get_file_timestamp('virtual_cdr') etc
- in models.py, add to list in required_files() method if it is required field:
def required_files(self): ''' used when building a tarball of required files ''' return [ 'budget' ]
-
add the fields to the database table manually or with migrations
-
in application/admin.py a. add to FUNDED_FILES tuple. b. add to list_display list in RocketLaunchTeamAdmin() model 'interim_progress_report_file','virtual_cdr_file', 'preliminary_design_report_file','virtual_pdr_file', etc c. create methods to display those fields from (b)
def virtual_cdr_file(self, instance): return admin_display_file(instance,'virtual_cdr') virtual_cdr_file.allow_tags = True virtual_cdr_file.short_description = "VCDR"
etc
-
add class names in the td tag to static/css/admin.css
field-virtual_cdr_file field-virtual_pdr_file etc
- in application/forms.py, add the field names to the upload form:
class RocketLaunchTeamUploadsForm(forms.ModelForm):
class Meta:
model = RocketLaunchTeam
fields = (
'award_acceptance','interim_progress_report',
'preliminary_design_report','final_design_report',
'flight_demo','lodging_list','other_file',
'critical_design_report','oral_presentation',
'post_flight_performance_report','education_outreach',
'flight_readiness_report','proceeding_paper','proposal',
'budget','verified_budget','close_out_finance_document',
'invoice','charges_certification','institutional_w9',
'virtual_cdr','virtual_pdr','virtual_frr'
)
-
add fields to templates/application/email/rocket-launch-team.files.inc.html
{% if data.virtual_cdr %}
-
Virtual CDR
- Created: {{data.virtual_cdr_timestamp}}
- https://{{server_url}}{{media_url}}{{data.virtual_cdr}}
{% else %}
{% if data.status %}
- Virtual CDR: Missing {% endif %} {% endif %}
-
add upload fields to templates/dashboard/rocket_launch_team_files.inc.html
Faculty
Aerospace Outreach Create Rocket Launch Team (NOI) Higher Education Initiatives NASA Competition Research Infrastructure Special Initiatives
Professional
Aerospace Outreach Industry Internship Higher Education Initiatives NASA Competition Research Infrastructure Special Initiatives
UnderGraduate
Dr. Laurel Salton Clark Memorial Research Fellowship Collegiate Rocket Launch Competition First Nations Rocket Launch Competition Midwest High-Powered Rocket Launch Competition High Altitude Balloon Payload High Altitude Balloon Launch Professional Program Student Participation STEM Bridge Scholarship Undergraduate Scholarship Undergraduate Research Fellowship WSGC Graduate & Professional Research Fellowship
Graduate
Dr. Laurel Salton Clark Memorial Research Fellowship WSGC Graduate & Professional Research Fellowship