I am uploading files in my django project and I need an efficient method to save them. Currently I am using the below lines in settings.py to create media folder in my root directory where I save the files.
ENV_PATH = os.path.abspath(os.path.dirname(__file__))
MEDIA_ROOT = os.path.join(ENV_PATH, 'media/')
But I want to save the files inside the app directory. Is it possible to find the path to my app directory? Is it possible and how should I change the above lines to accomplish it?
Is it a proper method to add the media files into the app directory or are they stored in the root project directory ? which is the best standard here?