This commit upgrades FHP from Python 2 to Python 3 and Django 1.11 to Django 2.0.
The following changes have been done with the reasons listed below:
django.core.urlresolvers
django.urls
url
re_path
app_name = 'messaging'
render_to_response
render
MIDDLEWARE_CLASSES
MIDDLEWARE
static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
SetRemoteAddrFromForwardedFor
{% load static from staticfiles %}
{% load static %}
rb
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Test suite is passed successfully after upgrading to Python3 and Django 2.1
Metadata Update from @jflory7: - Pull-request tagged with: new change, type - backend, type - summer coding - Request assigned
All looks good, none of the actual functionalities is broken I'm +1 for merge.
Pull-Request has been merged by bt0dotninja
@bt0dotninja Thank you so much for the speedy review :)
This commit upgrades FHP from Python 2 to Python 3 and Django 1.11
to Django 2.0.
The following changes have been done with the reasons listed below:
django.core.urlresolvers=>django.urlsurl=>re_pathapp_name = 'messaging'is required for url namespacing in Django 2.0render_to_response=>renderMIDDLEWARE_CLASSES=>MIDDLEWAREstatic(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)SetRemoteAddrFromForwardedForusing this{% load static from staticfiles %}=>{% load static %}rbto solveUnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte.Test suite is passed successfully after upgrading to Python3 and Django 2.1