Get absolute file path of FileField of a model instance in Django : <p>I have a page where people can upload files to my server.</p>

<p>I want to do something with the file in Celery. So, I need to know the absolute filepath of the uploaded FileFiled of my Model.</p>

<p>Let's say I queried the model and got the instance.
Now I need to get the absolute file path including the filepath.</p>

<p><code>obj = Audio.objects.get(pk=1)</code></p>

<p>I'm currently trying <code>obj.filename</code> and it's only printing the file name and not the absolute path.</p>

<p>I know I can get the upload path I input into <code>upload_to</code> and media directory, but I was wondering if there was a more DRY and automatic approach.</p>

<p>How do I get the <code>absolute path</code> of <code>file</code> which is a file filed in <code>obj</code>?</p>
