django-angular icon indicating copy to clipboard operation
django-angular copied to clipboard

Django 3.0 Error: ImportError raised when trying to load 'djng.templatetags.djng_tags': cannot import name 'six'

Open SilverStrings024 opened this issue 5 years ago • 4 comments

Django removed 'six' I'm not sure what to replace it with in the import. Error: ImportError raised when trying to load 'djng.templatetags.djng_tags': cannot import name 'six'

SilverStrings024 avatar Dec 14 '19 15:12 SilverStrings024

I can fix that. It boils down to

  • remove all from __future__ import unicode_literals
  • remove six
  • replace against super()

and drop support for Python-2 - which ends its lifecycle on 2020-01-01 anyway

jrief avatar Dec 14 '19 17:12 jrief

So I could do that with the installed version I've got then or should I just wait for an update?

SilverStrings024 avatar Dec 14 '19 17:12 SilverStrings024

@SilverStrings024 creating a pull request would speed up things.

jrief avatar Dec 14 '19 22:12 jrief

@jrief What branch do I use?

SilverStrings024 avatar Dec 15 '19 00:12 SilverStrings024