Skip to content

Instantly share code, notes, and snippets.

@stchris
Created September 26, 2010 07:54
Show Gist options
  • Save stchris/597709 to your computer and use it in GitHub Desktop.
Save stchris/597709 to your computer and use it in GitHub Desktop.
# source: http://www.reddit.com/r/django/comments/diqf9/if_you_allways_endup_googleing_how_to_code_down/c10igiw
import os
location = lambda x: os.path.join(os.path.dirname(os.path.realpath(__file__)), x)
MEDIA_ROOT = location('media')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment