Forums

ImportError: No module named 'bootstrap_datepicker_plus'

I pulled from GitHub and tried accessing our web app. I'm getting the following ImportError:

Error running WSGI application ImportError: No module named 'bootstrap_datepicker_plus'

I used the Debugging with sys.path/ImportError page to run the wsgi.py file and the traceback is the following:

Traceback (most recent call last):
File "/var/www/recreate_pythonanywhere_com_wsgi.py", line 15, in <module> application = get_wsgi_application()

File "/home/Recreate/.virtualenvs/Recreate-EQwP-lmM/local/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application django.setup(set_prefix=False)

File "/home/Recreate/.virtualenvs/Recreate-EQwP-lmM/local/lib/python2.7/site-packages/django/init.py", line 27, in setup apps.populate(settings.INSTALLED_APPS)

File "/home/Recreate/.virtualenvs/Recreate-EQwP-lmM/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry)

File "/home/Recreate/.virtualenvs/Recreate-EQwP-lmM/local/lib/python2.7/site-packages/django/apps/config.py", line 94, in create module = import_module(entry)

File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name)

ImportError: No module named bootstrap_datepicker_plus

I'm hoping this is an easy fix. I've tried installing the bootstrap-picker-plus, but it's giving me:

"Could not find a version that satisfies the requirement django-bootstrap-datepicker-plus (from versions: ) No matching distribution found for django-bootstrap-datepicker-plus"

Very new to pythonanywhere and any help would be greatly appreciated.

I figured it out. I needed to be in the pythonanywhere virtual environment console. It wasn't working with the pipenv shell. Site comes up, but CSS is a problem now.

Have a look at http://help.pythonanywhere.com/pages/StaticFiles/ and http://help.pythonanywhere.com/pages/DebuggingStaticFiles/