Django upgrade 1.9

Review Request #12288 - Created Jan. 3, 2018 and updated

Prakash Ranade
hue
django-upgrade-1.8
hue
enricoberti, ranade, romain, subrata, weixia
commit abd5a64eb7c7b21697b911243a8c69e83d6032fc
Author: Prakash Ranade <ranade@cloudera.com>
Date:   Wed Jan 3 11:35:56 2018 -0800

    Changes to upgrade Django 1.9:
    - rename request.REQUEST.get to request.GET.get
    - adding django context processor
    - adding urls.py for hue/accounts/login?next=/
    - no TEMPLATE_ variable in "settings.py"
    - fixing "request" dict population
    - fixing login url rule in desktop/core/src/desktop/urls.py

:100644 100644 a611d9bb90... d77841e816... M	apps/beeswax/src/beeswax/create_table.py
:100644 100644 c284874209... c53672f79b... M	apps/filebrowser/src/filebrowser/views.py
:100644 100644 2fbf2b8fa2... d7d9a6f9a6... M	apps/hbase/src/hbase/views.py
:100644 100644 ad1fa7a117... 9efee5e0a9... M	apps/jobbrowser/src/jobbrowser/views.py
:100644 100644 86d618399d... 262e9e1d95... M	apps/metastore/src/metastore/views.py
:100644 100644 04e106cb5e... 24d464a9e0... M	apps/oozie/src/oozie/decorators.py
:100644 100644 eb4ada6304... 39593da647... M	apps/oozie/src/oozie/views/dashboard.py
:100644 100644 b563e526f2... 47a8f9fdd3... M	desktop/core/ext-py/Django-1.9/django/template/context.py
:100644 100644 09aec4d247... 62b2248bc0... M	desktop/core/src/desktop/auth/backend.py
:100644 100644 06659f224a... 5db1ce5250... M	desktop/core/src/desktop/auth/views.py
:100644 100644 6d329fde19... 10f2f317e1... M	desktop/core/src/desktop/lib/django_mako.py
:100644 100644 295c377c32... c458dea586... M	desktop/core/src/desktop/lib/django_util.py
:100644 100644 0517008357... f954d6bc36... M	desktop/core/src/desktop/middleware.py
:100644 100644 0936425650... 7eb4c238fa... M	desktop/core/src/desktop/settings.py
:100644 100644 d9b62b1388... e71dd9b6f5... M	desktop/core/src/desktop/urls.py
:100644 100644 6451a30117... dec4bdb67e... M	desktop/core/src/desktop/views.py
:100644 100644 6efe61955e... d21350f486... M	desktop/libs/hadoop/src/hadoop/fs/upload.py
:100644 100644 6bc98b9800... 88071d193f... M	desktop/libs/indexer/src/indexer/solr_api.py
:100644 100644 e458db2e80... d168d2bede... M	desktop/libs/liboauth/src/liboauth/backend.py
:100644 100644 6d395bb903... 504c52e27e... M	desktop/libs/liboauth/src/liboauth/views.py
:100644 100644 1e2ddd5f1c... f064cbd4db... M	desktop/libs/libopenid/src/libopenid/views.py
:100644 100644 7f48c6c19f... 1efb27fdc0... M	desktop/libs/metadata/src/metadata/navigator_api.py


  • 0
  • 0
  • 0
  • 1
  • 1
Description From Last Updated
  1. Are the full test passing?

  2. GET --> POST?

    Probably safer to replace by this everywhere we have a REQUEST or double check that we actually need GET or POST, e.g.:

    request.GET.get('removeHeader', request.POST.get('removeHeader', 'off'))

    1. we have request.POST.get and request.GET.get in "views.py" files.

  3. 
      
Loading...