Skip to content

Instantly share code, notes, and snippets.

@russellbodine
Last active July 24, 2017 16:28
Show Gist options
  • Select an option

  • Save russellbodine/bbeb68e0f6d0011ae62b3208b17c7ba4 to your computer and use it in GitHub Desktop.

Select an option

Save russellbodine/bbeb68e0f6d0011ae62b3208b17c7ba4 to your computer and use it in GitHub Desktop.

Load Submission documentation

Call: python manage.py load_submission [options/args]

Purpose: Load submission data from submission file into the database

Flags:

-v

This flag will print a message when ever a submission file is completed, when an error or warning is raised, and returns a log file.

-vv

This flag prints the same messages as -v, as well as row by row data validation.

load_submission example

$python manage.py load_submission 16

This call will load the submission with id 16 from the db.

Response

{
	"results": [
		{
			"code": "",
			"decription": ""
		},
		....
		
	],
	
}

Errors

Possible HTTP Status Codes:

  • 400 : Missing parameters or limit is not a valid, positive integer
  • 500 : All other errors
{
  "message": "Sample error message"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment