djangofroala

Django: Pass UserID to settings.py


I need to pass the UserID to settings.py because of this line:

FROALA_UPLOAD_PATH = os.path.join(BASE_DIR, 'media/froala_editor/', instance.user.id)


Solution

  • I fixed it with settings override function

    Custom default settingsĀ¶