Open mpasternak opened 9 years ago
Newer versions of django include something like this in the autogenerated settings.py:
import os
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
PROJECT_PATH doesn't sound like BASE_DIR te me :-)
I'd just handle the failure more gracefully. I think a traceback with explanation, what does django-bower really need from the settings.py file would be okay.
Hi,
this is a part of my traceback, package built from today's git checkout:
I don't have settings.BASE_DIR so it breaks, even if I have BOWER_COMPONENTS_ROOT defined.
Is there a policy for BASE_DIR in django settings file? Do I need to have it?
On the other hand, what reasonable default can you choose for BASE_DIR? Maybe it is better to break, because djangobower needs to write to filesystem, so we rather have a defined place where it writes instead of assuming something like /tmp...