Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'django.utils.lru_cache' #94

Open
LostGRad opened this issue Jul 11, 2024 · 6 comments
Open

ModuleNotFoundError: No module named 'django.utils.lru_cache' #94

LostGRad opened this issue Jul 11, 2024 · 6 comments

Comments

@LostGRad
Copy link

Hi, when i wanted build this project i got next error ModuleNotFoundError: No module named 'django.utils.lru_cache' on step python manage.py migrate
Could you help me please?

@Lujeni
Copy link
Owner

Lujeni commented Jul 11, 2024

Hey @LostGRad

Thanks for your issue.
Can you try to update this library django-crispy-forms to version >=1.8.1 pls

@LostGRad
Copy link
Author

Hey @Lujeni, do you mean in file requirements.txt, and re-config ?

@Lujeni
Copy link
Owner

Lujeni commented Jul 15, 2024

@LostGRad please first attempt to install this version using pip. Additionally, we will need to update and fix the requirements.txt file accordingly. :)

@LostGRad
Copy link
Author

Hi @Lujeni
Now I got:
ImportError: cannot import name 'six' from 'django.utils' (/root/matterllo/venv/lib/python3.9/site-packages/django/utils/__init__.py)

Lujeni pushed a commit that referenced this issue Jul 17, 2024
@Lujeni
Copy link
Owner

Lujeni commented Jul 17, 2024

@LostGRad I update the requirements on master branch (with crispy and six). Can you try again pls ?

@LostGRad
Copy link
Author

Hi @Lujeni
I got error on step python manage.py runserver
File "/root/matterllo/matterllo/wsgi.py", line 16, in <module> application = get_wsgi_application() File "/root/matterllo/venv/lib/python3.9/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application return WSGIHandler() File "/root/matterllo/venv/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 127, in __init__ self.load_middleware() File "/root/matterllo/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 58, in load_middleware mw_instance = middleware(adapted_handler) File "/root/matterllo/venv/lib/python3.9/site-packages/whitenoise/middleware.py", line 20, in __init__ super(WhiteNoiseMiddleware, self).__init__(None) File "/root/matterllo/venv/lib/python3.9/site-packages/whitenoise/django.py", line 39, in __init__ self.configure_from_settings(settings) File "/root/matterllo/venv/lib/python3.9/site-packages/whitenoise/django.py", line 49, in configure_from_settings self.charset = settings.FILE_CHARSET File "/root/matterllo/venv/lib/python3.9/site-packages/django/conf/__init__.py", line 83, in __getattr__ val = getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute 'FILE_CHARSET'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants