Bug 13091 - SRTool broken for Django-2.2
Summary: SRTool broken for Django-2.2
Status: RESOLVED FIXED
Alias: None
Product: Security Response Tool
Classification: Yocto Project Subprojects
Component: General (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.7 M1
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-12-18 05:04 UTC by David Reyna
Modified: 2018-12-21 22:58 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Reyna 2018-12-18 05:04:22 UTC
Newer hosts (like Ubuntu-18) by default install Django-2.x.

The current SRTool for Django-1.11 does not support the API changes that Django-2.x requires, and this fails to start.
Comment 1 David Reyna 2018-12-18 05:06:32 UTC
Steps needed to support Django-2.2:
  Move 'django.core.urlresolvers' to 'django.urls'
  Disable 'register.assignment_tag' tags
  Move settings 'MIDDLEWARE_CLASSES' to 'MIDDLEWARE'
  Move urlpatterns 'include' to 'path'
  Move 'regex.pattern' to 'pattern.regex.pattern'
Comment 2 Ross Burton 2018-12-18 12:33:58 UTC
Startup doesn't work if there is no database because the SQL doesn't parse.  There's a patch in https://gitlab.com/rossburton/srtool/tree/ross
Comment 3 David Reyna 2018-12-21 22:58:47 UTC
Now working in multiple systems.