I have implemented wagtail on my site and when I put it into production it is not finding the css or any images. I have run
python manage.py collectstatic
and all of my css is in a directory called static_files in the same directory as manage.py.
In base.py I have:
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(PROJECT_DIR)
....
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static_files')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, "static_media")
On my development site BASE_DIR is the directory with static_files, but it does not seem to pick it up on the production site.
Is there any way that I can test to see where the production version is looking for the css, e.g in the HTML?
[Edit] I have looked at the answers to this question and it does not address the core of my problem which is that certain essential code was not being called when DEBUG is set to False