Changes between Initial Version and Version 1 of Ticket #23436
- Timestamp:
- Sep 6, 2014, 4:55:35 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23436 – Description
initial v1 7 7 Because there's no abspath, you can get different results for BASE_DIR depending on how settings.py is run. This is an edge case, since settings.py is almost always imported by django in the right context, but still -- compare: 8 8 9 {{{ 9 10 python manage.py shell 10 11 >>> from django.conf import settings 11 12 print(BASE_DIR) 13 }}} 12 14 13 15 With: 14 16 17 {{{ 15 18 python -i myproject/settings.py 16 19 >>> print(BASE_DIR) 20 }}} 17 21 18 22 As an aside, in general, in any path wrangling you should always call abspath first. Try running this script, saved to a file: