Skip to content

Not supporting Django 3.0.x #207

Open
@moojen

Description

@moojen

The forms.py still uses some "old" code from Django 2.x, which has been deprecated in 3.0.

I got the following errors and have added my solution to them, which made the app work (but not thoroughly tested).

  • from django.contrib.staticfiles.templatetags.staticfiles import static

  • ModuleNotFoundError: No module named 'django.contrib.staticfiles.templatetags'
    Solution: replace first line with from django.templatetags.static import static (and add an if statement based on the Django version)

  • from django.utils.lru_cache import lru_cache

  • ModuleNotFoundError: No module named 'django.utils.lru_cache'
    Solution: replace first line with from functools import lru_cache (and add an if statement based on the Django version)

Hope this helps anyone!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions