Hola, I've got a split settings set up for my prod/dev sites, and in all the hints I've seen over the years, I've most appreciated the line at the top of the settings file that goes like this (there are variations to the theme):
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) But almost all of the docs that I grab this info from are pre Django1.4, and I believe it was 1.4 where the structure changed slightly - settings are now in path/proj/proj/settings.py path/proj/app1 path/proj/app2 I would like BASE_DIR to be path/proj/ so I can use it in STATICFILES_DIRS for instance, but it's coming out as path/proj/proj/ I am thinking about: SETTINGS_DIR = os.path.dirname(os.path.abspath(__file__)) BASE_DIR = os.path.join(SETTINGS_DIR, '..') But it seems a bit convoluted or horrible. Does anyone have a better solution they could share? cheers L. -- ...we look at the present day through a rear-view mirror. This is something Marshall McLuhan said back in the Sixties, when the world was in the grip of authentic-seeming future narratives. He said, “We look at the present through a rear-view mirror. We march backwards into the future.” http://www.warrenellis.com/?p=14314 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.