I've encountered a strange problem: I've copy my whole settings.py content to one of my student's settings.py and change my username to his username. (username: zhaohongzhen20160254)
I've set this in the settings.py:
STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR,'static'),]
And there is a sub-directory named "font-image" under directory "static". there is a image file named "01.jpg" under directory "font-image".
When I visited my website use: http://adrop.pythonanywhere.com/static/font-image/01.jpg The image shows up. But if I visited my student's website use: http://zhaohongzhen20160245.pythonanywhere.com/staitc/font-image/01.jpg, it keep shows the error message says that the url is not correct.
Finally, I create a new folder in his static folder, named "fontimage", without the "-", and also upload "01.jpg" in it and visit via http://zhaohongzhen20160245.pythonanywhere.com/staitc/fontimage/01.jpg everything works.
I'm wondering why this happened. Could you help me?