[Answered ]-Python manage.py collectstatic not working: TypeError: sequence item 0: expected str instance, NoneType found

1👍

You have mispelled AWS_KEY_ACCESS_KEY_ID

It should be AWS_ACCESS_KEY_ID

The program expects a string against AWS_ACCESS_KEY_ID but because it is mispelled, so it is getting None instead. Due to this reason, you are getting an error that NoneType Found

0👍

Comment out the ‘STATICFILES_DIRS’ and try again. That was only used in my development.

also on a side note, i would remove the access keys from your bucket config when posting here. Even in production, they shouldn’t be seen there. You can use a JSON config file or another method thats not accessable.

👤nick

Leave a comment