Django: Unable to serve static media
Hello all, very new to Django and am trying out the tutorial here and I can’t seem to get it to serve static content. I’ve performed the following configurations in my settings.py:
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) STATIC_PATH = os.path.join(BASE_DIR,'static/') STATIC_URL = '/static/' STATICFILES_DIRS=( STATIC_PATH, )
my file is located at:
when I use the full URL:
I end up with the 404 Not Found nginx/1.4.6 (Ubuntu) error. Did I missed out on anything?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×