title: collectstatic collecting static files but they're not loading on webpage
body: <p>I am deploying my Django site on A2 Hosting.</p>
  <p>I can get the page to display but no static files (images/css) are loading.</p>
  <p>I have this in my settings.py:</p>
  <pre><code>STATIC_URL = '/static/'
  STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  
  ROOT_PATH = os.path.dirname(__file__)
  STATICFILES_DIRS = [os.path.join(ROOT_PATH, 'static')]
  </code></pre>
  <p>my urls.py:</p>
  <pre><code>urlpatterns = [
      path('admin/', admin.site.urls),
      path('', include('mysite.urls')),
      url(r'^$', TemplateView.as_view(template_name='static_pages/index.html'), name='home'),
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
  urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  </code></pre>
  <p>I am running <code>python manage.py collectstatic</code> in the terminal. It is creating a <code>static</code> folder with a file structure including <code>admin</code> and subfolders within that admin folder. My images and css files are appearing in the newly generated <code>static</code> file (in the base folder) yet neither the css nor my images are showing on my webpage (I've been restarting my server).</p>
  <p>My link to my css file within my html template is:</p>
  <pre><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;{% static 'style.css' %}&quot; type=&quot;text/css&quot;&gt;
  </code></pre>
  <p>This is done on shared hosting, I have debug set to false, and it works in development.</p>
  <pre><code>/home/mysite
  -&gt;etc
  -&gt;mysite
  --&gt;__pycache__
  --&gt;webpage
  ---&gt;static
  ----&gt;webpage
  -----&gt;image.jpg
  -----&gt;style.css
  ---&gt;templates
  ----&gt;webpage
  -----&gt;index.html
  --&gt;main_webpage
  ---&gt;settings.py
  --&gt;public
  --&gt;static_files (generated by collectstatic)
  ---&gt;admin
  ---&gt;image1
  ---&gt;style.css
  --&gt;template
  --&gt;tmp
  -&gt;logs
  ...
  </code></pre>
  <p>Thank you.</p>