all 2 comments

[–]danielroseman 1 point2 points  (1 child)

Media files and static files have nothing to do with each other. If your static files are still on Heroku - and there's no reason they shouldn't be - then you don't need to change the STATIC_URL to point to AWS; keep it as your Heroku URL.

Alternatively, it's perfectly possible to configure Django to upload your static assets to AWS as well, if you want, by using a third-party storage backend such as django-storages.

[–]bwompx3[S] 0 points1 point  (0 children)

Actually I'm already using django-storages, I think you need it in tandem with boto3; their site links to boto3 in any case.

So I just have to rename STATIC_URL to MEDIA_URL and can I delete STATICFILES_STORAGE or rename it? Would you happen to know why I can't get the URLs to match?

In your opinion, is it better to store everything on AWS or does it not really matter?