Forums

ModuleNotFoundError: No module named 'cicc'

I am trying to deploy my django-wagtail website here on pythonanywhere but I got error saying:

2021-04-30 11:31:44,188: Error running WSGI application
2021-04-30 11:31:44,188: ModuleNotFoundError: No module named 'cicc'
2021-04-30 11:31:44,188:   File "/var/www/aashusapk_pythonanywhere_com_wsgi.py", line 16, in <module>
2021-04-30 11:31:44,188:     application = get_wsgi_application()
2021-04-30 11:31:44,188: 
2021-04-30 11:31:44,189:   File "/home/aashusapk/.virtualenvs/cicc-virtualenv/lib/python3.8/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2021-04-30 11:31:44,189:     django.setup(set_prefix=False)
2021-04-30 11:31:44,189: 
2021-04-30 11:31:44,189:   File "/home/aashusapk/.virtualenvs/cicc-virtualenv/lib/python3.8/site-packages/django/__init__.py", line 19, in setup
2021-04-30 11:31:44,189:     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-04-30 11:31:44,190: 
2021-04-30 11:31:44,190:   File "/home/aashusapk/.virtualenvs/cicc-virtualenv/lib/python3.8/site-packages/django/conf/__init__.py", line 82, in __getattr__
2021-04-30 11:31:44,190:     self._setup(name)
2021-04-30 11:31:44,191: 
2021-04-30 11:31:44,191:   File "/home/aashusapk/.virtualenvs/cicc-virtualenv/lib/python3.8/site-packages/django/conf/__init__.py", line 69, in _setup
2021-04-30 11:31:44,191:     self._wrapped = Settings(settings_module)
2021-04-30 11:31:44,191: 
2021-04-30 11:31:44,192:   File "/home/aashusapk/.virtualenvs/cicc-virtualenv/lib/python3.8/site-packages/django/conf/__init__.py", line 170, in __init__
2021-04-30 11:31:44,192:     mod = importlib.import_module(self.SETTINGS_MODULE)

Code of aashusapk_pythonanywhere_com_wsgi.py

import os
import sys
path = '/home/AashuSapkota/CICCWebsiteUpdated/src'
if path not in sys.path:
    sys.path.insert(0, path)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cicc.settings.dev")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

My project structure is :

-CICCWebsiteUpdated
   -src
      - cicc
           -__pycache__
           -settings
                -__pycache__
                -__init__.py
                -base.py
                -dev.py
                -production.py
           -static
           -templates
           -__init__.py
           -urls.py
           -wsgi.py
      - home
      - media
      - search
      - db.sqlite3
      - manage.py
      - requirements.txt

[formatted by admin]

Hi, your account name is "aashusapk" so you should have /home/aashusapk/CICCWebsiteUpdated/src in the path -- in Linux paths are case sensitive.