Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figured out how to pass parameters from settings #36

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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