Forums

Static Files not loading

Hi, I have created by Django project using MS visual studio , cloned it GitHub and uploaded to your site. I have tried all the steps mentioned in your user guide but could not get the static files loaded and get the following error.

Not Found: /home/arokianathan/ITBones/ITBones/static/app/content/bootstrap.min.css

  1. When i run manage.py collectstatic i get an error message : Bootstrap3 not available.

For your advice and help. Thanks in advance.

I think your problem is the collectstatic error. You;re probably missing a library that provides bootstrap to your django app.

Thanks for your reply. When I run : python3.6 manage.py collectstatic I get an error : ModuleNotFoundError: No module named 'bootstrap3' For your advice please.

Error Log 13:43 ~/ITBones/ITBones (master)$ python3.6 manage.py collectstatic Traceback (most recent call last): File "manage.py", line 17, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python3.6/dist-packages/django/core/management/init.py", line 363, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.6/dist-packages/django/core/management/init.py", line 337, in execute django.setup() File "/usr/local/lib/python3.6/dist-packages/django/init.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python3.6/dist-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/local/lib/python3.6/dist-packages/django/apps/config.py", line 94, in create module = import_module(entry) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 978, in _gcd_import File "<frozen importlib._bootstrap>", line 961, in _find_and_load File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked ModuleNotFoundError: No module named 'bootstrap3'

Did you install bootstrap3 yourself using pip? If so, did you use pip3.6? Each version of Python has its own set of installed packages, so you need to make sure you use the right pip command.