Skip to content

simple_settings.LazySettings raises "cannot import name 'get_cache' from 'django.core.cache'" #294

@itsMGA

Description

@itsMGA
 from simple_settings import LazySettings

/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/simple_settings/init.py:1: in
from .models import Settings
/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/simple_settings/models.py:2: in
from django.core.cache import get_cache
E ImportError: cannot import name 'get_cache' from 'django.core.cache' (/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/django/core/cache/init.py)

Here's the requirements also:

certifi==2022.12.7
chromedriver_autoinstaller==0.4.0
django_simple_settings==0.3.1
jira==3.4.1
openapi_core==0.16.5
pytest==7.2.0
pytest_schema==0.1.1
python_dateutil==2.8.2
PyYAML==6.0
requests==2.28.1
selenium==4.8.2
simple_settings==1.2.0
six==1.16.0
urllib3==1.26.13

Python 3.10, OS: Ubuntu-latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions