Answer the question
In order to leave comments, you need to log in
Heroku Django MEDIA 404 - how to set up media files?
Hello.
Question for those who have used heroku. How did you set up the MEDIA files?
Here are my settings:
# settings.py
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
MEDIA_URL = '/media/'
# urls.py
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True, }),
Answer the question
In order to leave comments, you need to log in
In the free version, you can't upload anything to Heroku.
For media and static use external services like s3
brbrbr .... and where is it poured from the admin panel? 0-o
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question