Simon Willison’s Weblog

Friday, 21st December 2007

Using Unipath to Keep Things Portable. Django tip to avoid hard-coding full paths. I usually set a global called OUR_ROOT in settings.py using os.path.dirname(__file__) and use os.path.join with it to construct any other paths that I need. # 10:45 am

2007 » December

MTWTFSS
     12
3456789
10111213141516
17181920212223
24252627282930
31