Django 1.10 upgrade

Review Request #12315 - Created Jan. 10, 2018 and updated

Information
Prakash Ranade
hue
django-upgrade-1.10
Reviewers
hue
romain
commit 090e62237e60c27b9f694c4a675b204a04880da5
Author: Prakash Ranade <ranade@cloudera.com>
Date:   Fri Jan 5 13:51:18 2018 -0800

    To upgrade Django 1.10, we need to perform following changes:
    - In Django 1.10 django.conf.urls.patterns are deprecated.
    - fixing django.core.urlresolvers
    - Adding name argument and static file processing
    - Fixing Django Template context processor.
    - Fixing name property in reverse url access
    - Renaming password_policy to hue_password_policy
    - Renaming get_password_validators to hue_get_password_validators
    - Adding debug messages for app based urls.py
    - Adding reverse url fix

:100644 100644 b44bc8013b... 9f34a8b4ae... M	apps/about/src/about/templates/admin_wizard.mako
:100644 100644 fc9b5f6adf... e44aa42736... M	apps/about/src/about/tests.py
:100644 100644 1e4bf4ac6f... a892a52ac4... M	apps/about/src/about/urls.py
:100644 100644 b7732576f1... 65ecdb150d... M	apps/beeswax/src/beeswax/api.py
:100644 100644 431a2d50bf... 92c14f8470... M	apps/beeswax/src/beeswax/create_database.py
:100644 100644 d77841e816... a0ff0f2407... M	apps/beeswax/src/beeswax/create_table.py
:100644 100644 a78c8fc8ce... 369b699a45... M	apps/beeswax/src/beeswax/models.py
:100644 100644 868e9f0fe9... 49f0fa691e... M	apps/beeswax/src/beeswax/server/dbms.py
:100644 100644 4a990b7e0a... 8c044972de... M	apps/beeswax/src/beeswax/test_base.py
:100644 100644 d5e1e85bf6... 98693c2cde... M	apps/beeswax/src/beeswax/tests.py
:100644 100644 c2455ac41d... 1c59eae7d6... M	apps/beeswax/src/beeswax/urls.py
:100644 100644 4e9ab668cc... 37f9c8f278... M	apps/beeswax/src/beeswax/views.py
:100644 100644 bedfd45263... db0cb1ba7b... M	apps/filebrowser/src/filebrowser/urls.py
:100644 100644 c53672f79b... a5da9fa802... M	apps/filebrowser/src/filebrowser/views.py
:100644 100644 d0db9a3457... 63fd0ae21b... M	apps/filebrowser/src/filebrowser/views_test.py
:100644 100644 756d1c7ea0... 89bc5f8c11... M	apps/hbase/src/hbase/tests.py
:100644 100644 25375aad23... 344197f0d3... M	apps/hbase/src/hbase/urls.py
:100644 100644 9762437d97... 661ec29f18... M	apps/help/src/help/urls.py
:100644 100644 92849b349c... de204a4ece... M	apps/impala/src/impala/tests.py
:100644 100644 d4b65c51f4... 0cd75dca9b... M	apps/impala/src/impala/urls.py
:100644 100644 219605d2d1... 54b39745dd... M	apps/jobbrowser/src/jobbrowser/models.py
:100644 100644 95d2a9d7c3... c239aaaf39... M	apps/jobbrowser/src/jobbrowser/tests.py
:100644 100644 37800079e0... 65c103a8ca... M	apps/jobbrowser/src/jobbrowser/urls.py
:100644 100644 9efee5e0a9... ab53d4935d... M	apps/jobbrowser/src/jobbrowser/views.py
:100644 100644 dc59dd409b... 9246fa7ed4... M	apps/jobsub/src/jobsub/tests.py
:100644 100644 2229531e49... 71b95eb07f... M	apps/jobsub/src/jobsub/urls.py
:100644 100644 2d9632e86b... f4386e578c... M	apps/metastore/src/metastore/tests.py
:100644 100644 243598d8f2... 1e9655a5a8... M	apps/metastore/src/metastore/urls.py
:100644 100644 262e9e1d95... 68c651e642... M	apps/metastore/src/metastore/views.py
:100644 100644 6847bb25eb... b81cc35431... M	apps/oozie/src/oozie/management/commands/oozie_setup.py
:100644 100644 13c4b10eae... f6e6f439ff... M	apps/oozie/src/oozie/models.py
:100644 100644 141f898fcb... e7a24aca39... M	apps/oozie/src/oozie/models2.py
:100644 100644 d800fd8f95... 94740a3a7b... M	apps/oozie/src/oozie/models2_tests.py
:100644 100644 e17f3a8315... 730491de48... M	apps/oozie/src/oozie/tests.py
:100644 100644 cb7ea12d91... 33d4eaafb2... M	apps/oozie/src/oozie/urls.py
:100644 100644 39593da647... 137e88da78... M	apps/oozie/src/oozie/views/dashboard.py
:100644 100644 f955e084ec... 7a4c7138aa... M	apps/oozie/src/oozie/views/editor.py
:100644 100644 f84c96f2ac... 43c0c85a7f... M	apps/oozie/src/oozie/views/editor2.py
:100644 100644 e47c5f0338... 331948101d... M	apps/pig/src/pig/api.py
:100644 100644 88d220425c... f68af1b89c... M	apps/pig/src/pig/management/commands/pig_setup.py
:100644 100644 b3761c70d5... 84f2f9fca4... M	apps/pig/src/pig/models.py
:100644 100644 b678ccb539... f1cc99281e... M	apps/pig/src/pig/tests.py
:100644 100644 b43f7d1f5e... 12ebc60252... M	apps/pig/src/pig/urls.py
:100644 100644 e45e54bd49... 53d7e141b4... M	apps/pig/src/pig/views.py
:100644 100644 c32cd95678... 31e63e1db4... M	apps/proxy/src/proxy/urls.py
:100644 100644 edca37e9a0... 021a2424bf... M	apps/rdbms/src/rdbms/tests.py
:100644 100644 522156d4d1... e961ff29ee... M	apps/rdbms/src/rdbms/urls.py
:100644 100644 85cd005ecc... f3d18d3483... M	apps/rdbms/src/rdbms/views.py
:100644 100644 8b8c036099... 53905c9b64... M	apps/search/src/search/management/commands/search_setup.py
:100644 100644 0bd2dc21bc... c336236397... M	apps/search/src/search/models.py
:100644 100644 19d0c1056e... 73c43e1a24... M	apps/search/src/search/tests.py
:100644 100644 090222f2f8... 82f101a951... M	apps/search/src/search/urls.py
:100644 100644 bf53459098... bc76abb82a... M	apps/security/src/security/api/test_hive.py
:100644 100644 2357c98b49... c6cc1f2b3d... M	apps/security/src/security/tests.py
:100644 100644 7c09bec8cc... 227bca586f... M	apps/security/src/security/urls.py
:100644 100644 cc2a47d347... d3b52cf882... M	apps/spark/src/spark/urls.py
:100644 100644 b8ec48cea4... dc212d1ad4... M	apps/sqoop/src/sqoop/templates/app.mako
:100644 100644 ef9dd0044b... 7e685a5bb0... M	apps/sqoop/src/sqoop/tests.py
:100644 100644 12e14f1eaa... 36b8c62abc... M	apps/sqoop/src/sqoop/urls.py
:100644 100644 b0ba1e9c89... 935885489d... M	apps/useradmin/src/useradmin/forms.py
:100644 100644 145df474e1... 755b28f3f2... R098	apps/useradmin/src/useradmin/password_policy.py	apps/useradmin/src/useradmin/hue_password_policy.py
:100644 100644 5f82d8af4a... 3d503e2fcd... M	apps/useradmin/src/useradmin/templates/change_password.mako
:100644 100644 b50776bb17... f15f76e0c7... M	apps/useradmin/src/useradmin/templates/edit_user.mako
:100644 100644 1f4b4bd0da... f810cf486c... M	apps/useradmin/src/useradmin/test_ldap.py
:100644 100644 f86d81ffa6... a768110773... M	apps/useradmin/src/useradmin/test_ldap_deprecated.py
:100644 100644 3912afc2ac... bbbec21a35... M	apps/useradmin/src/useradmin/tests.py
:100644 100644 60c2d68b5d... d877136c02... M	apps/useradmin/src/useradmin/urls.py
:100644 100644 cff8218bd0... 5c46d325c5... M	apps/useradmin/src/useradmin/views.py
:100644 100644 6dcf6ffacb... 51335f3c62... M	apps/zookeeper/src/zookeeper/urls.py
:100644 100644 3343a8dacc... f24d9f7fcd... M	apps/zookeeper/src/zookeeper/views.py
:100644 100644 8367269d14... f24cb683d3... M	desktop/Makefile
:100644 100644 361f3503ca... 7be5871074... M	desktop/core/ext-py/Django-1.10/django/template/context.py
:100644 100644 fdf9f6bf41... 665feab8cf... M	desktop/core/ext-py/django-axes-2.2.0/axes/tests.py
:100644 100644 a6ca1cbe0f... f6accffbff... M	desktop/core/ext-py/django-extensions-1.8.0/django_extensions/admin/widgets.py
:100644 100644 94382a602e... ec664b8364... M	desktop/core/ext-py/django-extensions-1.8.0/django_extensions/management/commands/show_urls.py
:100644 100644 a5d3304f0f... 88c12bce2b... M	desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/management/commands/openid_cleanup.py
:100644 100644 8585960f2c... c7c8086d44... M	desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/views.py
:100644 100644 fcff9e8341... 399704a17c... M	desktop/core/ext-py/djangomako-1.0.1/djangomako/backends.py
:100644 100644 2da85834a6... cfbd337ef8... M	desktop/core/ext-py/python-openid-2.2.5/examples/djopenid/util.py
:100644 100644 0d28243f3c... 83f03884c9... M	desktop/core/src/desktop/app_template/src/app_name/urls.py
:100644 100644 0d28243f3c... 4bb1e76433... M	desktop/core/src/desktop/app_template_proxy/src/app_name/urls.py
:100644 100644 b1747a5faf... 6c3ffa04bf... M	desktop/core/src/desktop/auth/forms.py
:100644 100644 5db1ce5250... 2b6f22b70f... M	desktop/core/src/desktop/auth/views.py
:100644 100644 10f2f317e1... 982ea35b7b... M	desktop/core/src/desktop/lib/django_mako.py
:100644 100644 c458dea586... 13fd13c1d2... M	desktop/core/src/desktop/lib/django_util.py
:100644 100644 0ecbd9368b... da8da1fbb8... M	desktop/core/src/desktop/lib/tasks/compress_files/compress_utils.py
:100644 100644 0b1fd3ff5e... fee054b3df... M	desktop/core/src/desktop/lib/tasks/extract_archive/extract_utils.py
:100644 100644 f2bf2fe76d... f560002a12... M	desktop/core/src/desktop/management/commands/config_dump.py
:100644 100644 282de45fdc... 872ec42fe6... M	desktop/core/src/desktop/management/commands/config_help.py
:100644 100644 cfcca48d59... 333c7b87a3... M	desktop/core/src/desktop/management/commands/convert_documents.py
:100644 100644 41c64e7336... 68a866ab37... M	desktop/core/src/desktop/management/commands/create_test_fs.py
:100644 100644 c9f3e28790... 9106bb15cb... M	desktop/core/src/desktop/management/commands/generate_mdl.py
:100644 100644 8ea7927b56... 4add555859... M	desktop/core/src/desktop/management/commands/is_db_alive.py
:100644 100644 56c69fd3a0... c03762618f... M	desktop/core/src/desktop/management/commands/kt_renewer.py
:100644 100644 3ef77273b2... 21a1565a69... M	desktop/core/src/desktop/management/commands/ldaptest.py
:100644 100644 175ff57511... 25348f5b18... M	desktop/core/src/desktop/management/commands/sync_documents.py
:100644 100644 fcd22013a8... 2c3bad7735... M	desktop/core/src/desktop/management/commands/version.py
:100644 100644 f954d6bc36... b2ae33ba83... M	desktop/core/src/desktop/middleware.py
:100644 100644 a8dff758e3... 47a1534f1e... M	desktop/core/src/desktop/models.py
:100644 100644 f06d548b1b... 1595615407... M	desktop/core/src/desktop/templates/common_header.mako
:100644 100644 003da87134... cfe1bad9a6... M	desktop/core/src/desktop/templates/common_header_footer_components.mako
:100644 100644 d9fd5433b1... 45d214ff46... M	desktop/core/src/desktop/templates/common_header_m.mako
:100644 100644 747ca796ff... 37fd09e638... M	desktop/core/src/desktop/templates/common_home.mako
:100644 100644 cf6e72911f... c72e10aa0d... M	desktop/core/src/desktop/templates/home.mako
:100644 100644 840a5fd81e... a9e9748033... M	desktop/core/src/desktop/templates/login.mako
:100644 100644 21fbd3f373... 470605b9ba... M	desktop/core/src/desktop/templates/login_modal.mako
:100644 100644 3bcc99fb02... 60c3786cfd... M	desktop/core/src/desktop/tests.py
:100644 100644 e71dd9b6f5... 001c4b997e... M	desktop/core/src/desktop/urls.py
:100644 100644 dec4bdb67e... 09c904c178... M	desktop/core/src/desktop/views.py
:100644 100644 efac537987... ed72211e7c... M	desktop/libs/dashboard/src/dashboard/models.py
:100644 100644 7dbe808570... 356afe37f2... M	desktop/libs/dashboard/src/dashboard/tests.py
:100644 100644 28513ee9a0... 796a97960d... M	desktop/libs/dashboard/src/dashboard/urls.py
:100644 100644 c27f397912... f985fe9e0c... M	desktop/libs/dashboard/src/dashboard/views.py
:100644 100644 6e7fd16ee3... 554b870757... M	desktop/libs/indexer/src/indexer/api3.py
:100644 100644 1ebe30bf5c... cf861102d6... M	desktop/libs/indexer/src/indexer/indexers/morphline.py
:100644 100644 2e62cad85f... f8bdfa9985... M	desktop/libs/indexer/src/indexer/indexers/rdbms.py
:100644 100644 945b53f556... df0bb34745... M	desktop/libs/indexer/src/indexer/indexers/sql.py
:100644 100644 2c54a11af4... 6960182dc1... M	desktop/libs/indexer/src/indexer/solr_client_tests.py
:100644 100644 7f012d9aa2... d675bda38d... M	desktop/libs/indexer/src/indexer/tests.py
:100644 100644 ee2b897d8b... ce899400cd... M	desktop/libs/indexer/src/indexer/urls.py
:100644 100644 634a26f879... 761e8965d4... M	desktop/libs/liboauth/src/liboauth/urls.py
:100644 100644 48a91482d4... 054beb3a5d... M	desktop/libs/liboozie/src/liboozie/types.py
:100644 100644 2f93435757... ca6afb6781... M	desktop/libs/libopenid/src/libopenid/urls.py
:100644 100644 6a548db0b4... db285e946f... M	desktop/libs/libsaml/src/libsaml/urls.py
:100644 100644 7b267f4c0b... 24c6e15aab... M	desktop/libs/libsolr/src/libsolr/tests.py
:100644 100644 14d9c7ae2e... 886b242391... M	desktop/libs/metadata/src/metadata/navigator_tests.py
:100644 100644 0c157277dd... b69cae6e9b... M	desktop/libs/metadata/src/metadata/urls.py
:100644 100644 a138060f9a... b45c15917e... M	desktop/libs/notebook/src/notebook/api.py
:100644 100644 8face3b327... 230cbc04fb... M	desktop/libs/notebook/src/notebook/connectors/dataeng.py
:100644 100644 89fa8f61ab... a97c5a9354... M	desktop/libs/notebook/src/notebook/connectors/hbase.py
:100644 100644 17746ac2ee... aa6ee5de27... M	desktop/libs/notebook/src/notebook/connectors/hiveserver2.py
:100644 100644 162eaf0395... 5100a69906... M	desktop/libs/notebook/src/notebook/connectors/oozie_batch.py
:100644 100644 0363668b0f... 361a618524... M	desktop/libs/notebook/src/notebook/connectors/tests/tests_hiveserver2.py
:100644 100644 1eb7f7e424... 9a11523cf7... M	desktop/libs/notebook/src/notebook/management/commands/dbproxy_server.py
:100644 100644 bf3a96d1e4... 321b03fe30... M	desktop/libs/notebook/src/notebook/tests.py
:100644 100644 4f4e997d29... 74b1825ebd... M	desktop/libs/notebook/src/notebook/urls.py
:100644 100644 9c4211cd35... 85c8f07b54... M	desktop/libs/notebook/src/notebook/views.py

  

Issues

  • 24
  • 0
  • 0
  • 24
Description From Last Updated
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: 2 new lines total Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after and ts Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
Can revert or to see later? Might be better to do it in a separate commit, so that it is ... Romain Rigaux Romain Rigaux
Could combine Romain Rigaux Romain Rigaux
same Romain Rigaux Romain Rigaux
Part of the of context processor engine later I guess Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after and ts Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
nit: new line after Romain Rigaux Romain Rigaux
Romain Rigaux

Nice one!

nit: new line after (with split Django and Hue specific imports)

Makefile: db upgrade to see in step 6 and context processor in 7 I guess

apps/about/src/about/urls.py (Diff revision 1)
 
 

nit: new line after

nit: new line after

apps/hbase/src/hbase/urls.py (Diff revision 1)
 
 

nit: new line after

apps/help/src/help/urls.py (Diff revision 1)
 
 

nit: new line after

apps/impala/src/impala/urls.py (Diff revision 1)
 
 

nit: 2 new lines total

apps/jobsub/src/jobsub/urls.py (Diff revision 1)
 
 

nit: new line after

apps/metastore/src/metastore/urls.py (Diff revision 1)
 
 

nit: new line after

apps/oozie/src/oozie/urls.py (Diff revision 1)
 
 

nit: new line after

apps/pig/src/pig/urls.py (Diff revision 1)
 
 

nit: new line after

apps/proxy/src/proxy/urls.py (Diff revision 1)
 
 

nit: new line after

apps/rdbms/src/rdbms/urls.py (Diff revision 1)
 
 

nit: new line after

apps/search/src/search/urls.py (Diff revision 1)
 
 

nit: new line after

apps/security/src/security/urls.py (Diff revision 1)
 
 

nit: new line after and ts

apps/sqoop/src/sqoop/urls.py (Diff revision 1)
 
 

nit: new line after

apps/useradmin/src/useradmin/urls.py (Diff revision 1)
 
 

nit: new line after

apps/zookeeper/src/zookeeper/urls.py (Diff revision 1)
 
 

nit: new line after

desktop/Makefile (Diff revision 1)
 
 
 
 

Can revert or to see later?

Might be better to do it in a separate commit, so that it is easier to tracj

Could combine

same

Part of the of context processor engine later I guess

nit: new line after

nit: new line after and ts

nit: new line after

nit: new line after

Loading...