Admin uploads go to admin media folder, not MEDIA_ROOT
|Reported by:||Tyson Tate <tyson@…>||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have the following settings in my settings.py file:
MEDIA_ROOT = '/Users/ttate/Desktop/fallingbullets/project-media/' MEDIA_URL = 'http://localhost:8000/project-media/' ADMIN_MEDIA_PREFIX = '/media/'
I also have a model with the following:
image = models.ImageField(upload_to="portfolio", core=True)
When I use the admin interface to upload an image, it gets placed in /media/portfolio and not /project-media/portfolio, where it should have gone.