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

Example of passing grade back #203

Open
danielmcquillen opened this issue Jul 8, 2019 · 0 comments
Open

Example of passing grade back #203

danielmcquillen opened this issue Jul 8, 2019 · 0 comments

Comments

@danielmcquillen
Copy link

danielmcquillen commented Jul 8, 2019

Are there any examples of best practice for passing back a grade to the consumer?

Is there a standard approach to handling grading logic in our own app-specific views and then redirecting the result with score post variable to /grade?

The approach outlined in django-lti-provider-example looks something like this

  <form action="{% url 'lti-post-grade' %}" method="post">
        {% csrf_token %}
        <input type="input" name="score" value=".55"/>
        <input type="hidden" name="next" value="{% url 'main:assignment-success' %}"/>
        <input type="submit" value="submit"/>
      </form>

but that approach wouldn't allow for app-specific logic before determining a grade.

(When I do try this basic approach, the oauth2 library complains that "Base URL for request is not set." and causes a 500 error. I've traced that down to the fact that a normalized_url isn't set in Oauth when the request to the consumer goes out...I'm wondering if that means I haven't configured my producer right? I have set my LTI_TOOL_CONFIGURATION per the example...)

Any thoughts are much appreciated!

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

No branches or pull requests

1 participant