Skip to content

Figured out how to pass parameters from settings#36

Open
AndrewQuijano wants to merge 7 commits intogradescope:masterfrom
AndrewQuijano:master
Open

Figured out how to pass parameters from settings#36
AndrewQuijano wants to merge 7 commits intogradescope:masterfrom
AndrewQuijano:master

Conversation

@AndrewQuijano
Copy link
Contributor

Hello,
I figured out how to pass parameters to the JSONTestRunner from settings.py file in Django. I was able to test it locally with no issues.

I am wondering, when would anyone else be able to download these updates? Furthermore, I figure this could be useful for anyone teaching courses on either developing Django applications or in my case, use a buggy Django implementation for a CTF.

AndrewQuijano and others added 3 commits March 29, 2023 09:11
…ss parameters from settings.py to customize the autograder. I should note you can pass a file descriptor no problem in settings.py, however I am unsure where you would close it. Regardless, I will leave that for a later time as I am assuming instructors would either stick the the default or would be aware of open file descriptors
@AndrewQuijano AndrewQuijano requested a review from a team as a code owner March 29, 2023 14:47
@AndrewQuijano
Copy link
Contributor Author

Actually, with some more poking around in settings.py setting fd = open('file.json', 'w') and passing that to gradescope parameters, I am getting no warning from either testing or running the server.

@ibrahima
Copy link
Contributor

ibrahima commented Jul 6, 2023

@AndrewQuijano thanks for your contribution! Sorry for the delay in getting this reviewed.

To be honest, I think it probably make more sense to make this its own pip package with its own repository so that updates don't have to go through our team. I'm happy to leave it here for now but I don't think it makes sense in the long term. At that point we could link to it from https://gradescope-autograders.readthedocs.io/en/latest/resources/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments