The generic way to fix this complete error ” importerror no module named cms ” is to install the python package django_cms. Actually the above mention error is “No module named cms.test_utils.project.placeholderapp.views ” . People write it incomplete and search, Hence they stuck and they do not get the solution for the problem. Well, In this article we will figure out different ways to install the django_cms package stepwise. So lets start –
Importerror no module named cms : Solution –
So the very first way to fix this error is using pip package manager .
Method 1: Using pip for django_cms package –
Use the below command for pip installation of django_cms package.
pip install django-cms
The above command for installing django-cms will install the latest version for the package. If you want to install any specific version, You need to define the version with it. You need to apply sudo before the command to enable admin rights with the above command . Here is the command for this-
sudo pip install django-cms
Method 2 : Using conda –
The another way is using conda in the place of pip package manager. There is little difference in command also. Please run the below command.
conda install -c auto djangocms-installer
Anaconda is very popular data science package for all consolidated data science tools and library. The conda and miniconda are its default package manager. These are widely used in industry for packagings.
I hope now you guys must be able to fix the error importerror no module named cms. If you still are unable to fix this error, Please let us know. Our team will connect with you soon on this. You may also comment below in the comment box. Also if some one has some other points to highlight related to this topic . We will improve this article together. Please write back to us.
Data Science Learner Team
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.