Bug 13091

Summary: SRTool broken for Django-2.2
Product: [Yocto Project Subprojects] Security Response Tool Reporter: David Reyna <david.reyna>
Component: GeneralAssignee: David Reyna <david.reyna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: ross.burton
Version: 2.7   
Target Milestone: 2.7 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.