Search code examples
pythondjangoproject

ModuleNotFound while running the web app locally


I'm trying to run the project available on GitHub locally as mentioned in the instructions but getting ModuleNotFound error even though I've cloned the whole project and following the instruction in a correct way as mentioned.

I'm unable to understand this. Please find the repository here.

This is the error message I'm getting while trying to run the server locally.


Solution

  • This is common error when you are trying to import library that is not installed. To fix this, you have to install library by:

    pip install bootstrapform
    

    Or install all requirements attached to project using:

    pip install -r requirements.txt
    

    And then append it to list of your packages in django settings, in your project it is 4th_umpire/web/cfd/settings.py.

    INSTALLED_APPS = [
    'bootstrapform',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'fourth_umpire',
    'bootstrapform',
    

    ]