16👍
✅
You should print the attribute of the imported module:
print settings.BASE_DIR
Or import this variable from the module:
from settings import BASE_DIR
print BASE_DIR
26👍
These commands will help:
python manage.py shell
Then in python shell type:
from django.conf import settings
print(settings.BASE_DIR)
- [Django]-How to test Django's UpdateView?
- [Django]-Django-reversion and related model
- [Django]-Are sessions needed for python-social-auth
Source:stackexchange.com