Deploying Django App to Azure Storage Error

403 Views Asked by At

I've been following this tutorial on deploying my django app on Azure: https://testdriven.io/blog/django-azure-app-service/ Everything was working fine until I added Azure storage. Now my webpage is giving me an error saying Could not find backend 'core.azure_storage.AzureStaticStorage': No module named 'core' When seeing something like this I instantly thought to check my requirements.txt, they are updated with the required installs (django-storages, azure-core, and azure-storage-blob). At a loss with where to even start here. Re checked the tutorial and all my settings are properly set.

1

There are 1 best solutions below

13
Jahnavi On

Could not find backend 'core.azure_storage.AzureStaticStorage': No module named 'core':-

Need to check below:

  • Firstly, Check the package whether it is installed correctly. If not, Uninstall & re-install the package by executing pip install azure-storage-blob in the terminal to avoid these kinds of conflicts.

  • Check whether the packages installed in the correct environment by running py -m pip freeze. It retrieves all the installed packages with their current versions as shown.

enter image description here

  • If you changed any code or configuration, you need to restart your web server or development server by running python manage.py server.

Note: If still the issue persists, Check the Django version compatibility with the versions of azure-core and azure-storage-blob.