Add support for Django 1.10
https:/
Django 1.10 will be released during the N cycle, and Django 1.9 will end mainstream support.
Matching Django OpenStack Auth blueprint: https:/
Blueprint information
- Status:
- Complete
- Approver:
- David Lyle
- Priority:
- High
- Drafter:
- Rob Cresswell
- Direction:
- Approved
- Assignee:
- None
- Definition:
- Approved
- Series goal:
- Accepted for 10.0.0-newton
- Implementation:
-
Implemented
- Milestone target:
-
newton-rc1
- Started by
- David Lyle
- Completed by
- Rob Cresswell
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Update URLs to Django 1.8+ style
Addressed by: https:/
Add default value for get_form() form_class arg
Gerrit topic: https:/
Addressed by: https:/
Add Django 1.10 tox env
Addressed by: https:/
[Django 1.10] Remove old style URLS
Notes from zigo:
==========
Debian bug related about (build) dependency packages:
----------
https:/
https:/
https:/
https:/
All of them have been addressed, plus I'm waiting for the approval to upload a new version of django-nose:
Dango 1.10 means we need django-nose 1.4.4:
https:/
Horizon uses removed django.
----------
This breaks sahara-dashboard and others if Django >= .10.
https:/
Django 1.10 get_form switches to kwargs:
----------
This breaks 3 unit tests in horizon, and a lot more in openstack_
horizon.
horizon.
horizon.
Proposed patch: https:/
Defining TEMPLATES =
----------
In Django 1.10, we have to define something like this in horizon/
TEMPLATES = [
{
'BACKEND': 'django.
'DIRS': [ os.path.join( os.path.
'OPTIONS': {
],
],
},
},
]
otherwise, there's 60-ish unit test errors Horizon, and a way more in openstack_
In Django 1.10, after fixing settings.py (ie: add a TEMPLATES thing), we have errors:
horizon.
horizon.
horizon.
horizon.
I'm not sure how to fix settings.py then. :/
In openstack_
TEMPLATES = [
{
'BACKEND': 'django.
'DIRS': [os.path.
'OPTIONS': {
],
],
},
},
]
note the django.template instead of django.core. This shall also be fixed in other places in the config file.
django.
----------
This patch seems to help, though I'm really not sure what I'm doing here, so I would need a real Django dev to look at the issue and eventually approve the patch. Note that it doesn't break Django 1.9 (all unit tests are passing), and seem to solve some Django 1.10 problems:
https:/
==========
that's all the issues I had in the horizon folder. Now, the openstack_dashboard notes.
Addressed by: https:/
Use argparse instead of optparse
Addressed by: https:/
Update Django 1.10 tox env
Addressed by: https:/
Update TEMPLATES setting for Django 1.10
Gerrit topic: https:/
Addressed by: https:/
Support is_authenticated() and is_anonymous() 1.10
Addressed by: https:/
Fix compatibility issues with Django 1.10