MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media/media/")
MEDIA_URL = "/site_media/media/"
STATIC_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "static")
STATIC_URL = "/site_media/static/"
STATICFILES_DIRS = [
os.path.join(PROJECT_ROOT, "static", "dist"),
os.path.join(PROJECT_ROOT, "static"),
os.path.join(PROJECT_ROOT, "static", "src"),
os.path.join(PROJECT_ROOT, "Post", "static"),]
STATICFILES_FINDERS = [
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",]
The site is able to access the media, but not the css or the js. I then ran 'python manage.py collectstatic' and the static files were placed in the /site_media/static directory (I checked). In the static files section of the web tab I put in
URL: /site_media/static and PATH: /home/soncojmk/poppin/mysite/site_media/static/admin/ which didn't work so I then put in,
URL: /site_media/static and PATH: /home/soncojmk/poppin/mysite/site_media/static/admin/base.css, I hit the reload button again, refreshed the site, but there was no change. I also added URL and PATHs to the static files, but there were still no changes. In my base.html, I have {%load static files %}. All these settings work in localhost, but I understand django uses different settings in the development stage than the deployment. Thank you for the reply.