[Django]-'NoneType' object has no attribute 'endswith', django , python

5👍

I solved similar problem by add this in settings.py

BASE_DIR = os.path.dirname(os.path.dirname(__file__))
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

and also maybe you need to run command

python manage.py collectstatic

Hope this helps

Leave a comment