Kyle McCormick
688d3e7e46
Add logging slug to /debug/run_python safe exec call
...
Codejail logs all calls to `safe_exec` that include a `slug`.
Provide a `slug` in the Python-safe-exec debug view so that
usages of it are logged (for debugging purposes).
2020-11-09 09:56:27 -05:00
Kyle McCormick
758c2b02a1
Pass course-run-specific resource limits to codejail
...
The limits can be defined in settings.CODE_JAIL['limits_overrides'],
which is a dict mapping context ids (generally, course run keys)
to overrides to be applied to settings.CODE_JAIL['limits'].
This will allow us to temporarily alter the codejail limits
for certain contexts in order to enable, for example,
a certain course run's tasks to run longer while a large exam's
grades are recomputed.
TNL-7649
2020-11-05 11:53:16 -05:00
Feanil Patel
6e3fe00fff
Fix all E303 pep8 errors.
2019-12-30 12:25:38 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Stu Young
ea98e08362
INCR-256 Run python-modernize on lms/djangoapps/debug ( #20564 )
...
* run python modernize
* run isort
2019-05-21 11:37:47 -04:00
Matthew Piatetsky
6e81c84d8b
fix unicode strings in lms/ part 1
2019-02-05 15:15:02 -05:00
Andy Armstrong
79acb5c5be
Reorder LMS imports using isort
2017-06-11 21:48:06 -04:00
Ned Batchelder
eef964f5f6
Fix unused-variable errors
2016-08-03 12:44:41 -04:00
Ned Batchelder
8b1978ba6c
Fix unused-import errors
2016-08-03 12:44:41 -04:00
AlasdairSwan
a9971ef2ba
FEDX-118 Adding header to test page
2016-04-25 10:56:28 -04:00
Sarina Canelake
e53b9c83d9
Use Django 1.4 @ensure_csrf_cookie method PLAT-664
2015-06-06 08:48:36 -04:00
Andy Armstrong
7683cba2c3
Add support for UX reference templates in LMS
2014-09-11 13:52:48 -04:00
Ned Batchelder
533e072677
A debug view for seeing the URL params
2014-07-24 16:11:20 -07:00
Ned Batchelder
d9bb2868e8
Add a view that can show us what URL params we got
2014-07-24 16:10:56 -07:00
David Baumgold
8eff442752
mitxmako => edxmako
2013-12-03 14:15:09 -05:00
Ned Batchelder
61b53713d2
Remove unused imports from lms, as detected by pylint.
2013-06-19 16:56:34 -04:00
Ned Batchelder
5acb225816
Print the full traceback when execution fails.
2013-05-06 11:39:17 -04:00
Ned Batchelder
839c568474
Hmm, turns out exec wants just one dict to properly simulate Python module execution.
2013-05-06 11:39:17 -04:00
Ned Batchelder
ec7a04fdb3
A /debug/run_python endpoint for staff to test the sandboxing of Python code.
2013-05-06 11:39:17 -04:00