Forums

Loading Static Files

Hi,

I cloned our repository and setup the app. When I load the the webapp only text shows up and not the static files with bootstrap that we had. I have installed bootstrap in our virtual environment and added a Static_root and Static_url in the setting.py. I added the paths in webapp tab on python anywhere but the files still dont show up. Any help will be appreciated.

Here is how settings.py is setup:

STATIC_URL = '/static/'
STATIC_ROOT = "/home/edmoneyball/mysite/edmoneyball/mysite/edmoneyball/static/edmoneyball/"

Here is how the relevant html page is setup:

 {% load staticfiles %}
    <!DOCTYPE html>
    <html lang="en">
    {% include "/home/edmoneyball/mysite/edmoneyball/mysite/edmoneyball/templates/edmoneyball/head.html" %}
    <body>
    {% include '/home/edmoneyball/mysite/edmoneyball/mysite/edmoneyball/templates/edmoneyball/navbar.html' %}

and in the end I have the line:

{% include "/home/edmoneyball/mysite/edmoneyball/mysite/edmoneyball/templates/edmoneyball/javascript.html" %}

Dont understand where the problem is

Does this and this help?