Keywords: Django - AWS - Technical issue - Other
I'm new to Bitnami. I've tried Bitnami in AWS Lightsail for a trial, it worked. Then I've tried to deploy my existing Django app which is using rest_framework package .
I've done what document says but I couldn't solve this issue. I've installed my packages in bitnami instance and when I check I get this result.
python -c "import rest_framework as ; print(.path)"
So I installed package on instance.
But in Apache error log it says it couldn't import the package because it's looking inside "/opt/bitnami/python/lib/python3.8/site-packages/" path.
File "/opt/bitnami/python/lib/python3.8/importlib/__init__.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "<frozen importlib.bootstrap>", line 1014, in _gcdimport
File "<frozen importlib.bootstrap>", line 991, in _findand_load
File "<frozen importlib.bootstrap>", line 973, in _findand_load_unlocked
ModuleNotFoundError: No module named 'rest_framework'
I've checked previous topic here. So I've same issue in the link below.
Any help would be much appreciated.