location of fieldkeys
Awmusic12635 opened this issue · 1 comments
Awmusic12635 commented
ENCRYPTED_FIELDS_KEYDIR = '/path/to/fieldkeys'
Is this relative to my project folder?
so / would be considered the top of my project folder.
defrex commented
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')