Re: Django MEDIA url in storage.py

2012-05-16 Thread Gert Van Gool
The usage of MEDIA_ROOT is by design. According to the release notes from 1.3 [1], the intention is to have uploaded files in MEDIA_ROOT and assets/static files in STATIC_ROOT. Nothing stops you from doing: MEDIA_ROOT = STATIC_ROOT MEDIA_URL = STATIC_URL [1]

Re: Django MEDIA url in storage.py

2012-05-16 Thread Andre Terra
You can define a custom location for your files like the docs tell you: https://docs.djangoproject.com/en/dev/topics/files/#the-built-in-filesystem-storage-class https://docs.djangoproject.com/en/dev/howto/custom-file-storage/ https://docs.djangoproject.com/en/dev/topics/http/file-uploads/ If

Django MEDIA url in storage.py

2012-05-16 Thread hakim
Hi all, I am developing an intranet portal using django 1.3.1. I noticed in my uploader app that the default storage redirects the saved files to the apache2 directory. I found later that the reason of this is due to Django.core.files.storage.py in line 152, 154. It still uses