Closed Awmusic12635 closed 8 years ago
It is not relative to your project folder. However, you can make it so thusly.
import os
PROJECT_DIR =os.path.dirname(os.path.dirname(__file__)) # assuming $PROJECT_DIR/somename/settings.py
ENCRYPTED_FIELDS_KEYDIR = os.path.join(PROJECT_DIR, 'mycoolpath/keys')
ENCRYPTED_FIELDS_KEYDIR = '/path/to/fieldkeys'
Is this relative to my project folder?
so / would be considered the top of my project folder.