Upgrade Django to 1.11 [One Step at a time] - #135
Conversation
|
@prshnt19 has done some work with Django for SymPy Live sympy/sympy-live#144. Perhaps you can review each other's work. I can also give you access to push up to the App Engine if you need it. |
Co-Authored-By: Aaron Meurer <asmeurer@gmail.com>
|
@asmeurer Sure, sounds great! |
|
@prshnt19 Can you please have a look at this PR? |
| return HttpResponse(json.dumps({ | ||
| 'error': 'Computation timed out.' | ||
| }), mimetype="application/json") | ||
| }), content_type="application/json") |
There was a problem hiding this comment.
I think its better to use JsonResponse.
| } | ||
|
|
||
| return HttpResponse(json.dumps(response), mimetype='application/json') | ||
| return HttpResponse(json.dumps(response), content_type='application/json') |
There was a problem hiding this comment.
| return HttpResponse(json.dumps(response), content_type='application/json') | |
| return JsonResponse(response) |
| }] | ||
|
|
||
|
|
||
| ALLOWED_HOSTS = ['127.0.0.1', 'localhost'] |
There was a problem hiding this comment.
Allowed hosts should contain the domain 'https://sympygamma.com' for production.
| version: "1.3" | ||
| version: "1.11" | ||
| - name: numpy | ||
| version: "1.6.1" |
There was a problem hiding this comment.
| version: "1.6.1" | |
| version: "1.18.1" |
I think numpy should be updated to latest.
@prshnt19 Thanks for the review. This is beyond the scope of this PR. The plan is to do incremental working updates. See this comment. This PR only contains minimum amount of changes required to support Django 1.11, following PR could contain upgrading further versions incrementally. |
|
Well, I only have doubts for python2. Other than that changes look fine to me |
This is an attempt to prepare for Python3 upgrade. It will happen incrementally. |
|
SymPy Gamma is also hosted at gamma.sympy.org |
Updated |
Upgrading everything to latest version in one go is not a great idea and will be hard to review as well, I am planning to upgrading things slowly and one by one so that the diff is not a lot.
@asmeurer @certik @lidavidm