Created
April 25, 2012 16:58
-
-
Save sehmaschine/2491298 to your computer and use it in GitHub Desktop.
Multiple FileBrowser Sites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from filebrowser.sites import site | |
from django.core.files.storage import DefaultStorage, default_storage, FileSystemStorage | |
site_1 = site(name="First FB Site", app_name="filebrowser", storage=default_storage) # default filebrowser site | |
site_2 = site(name="Second FB Site", app_name="filebrowser", storage=FileSystemStorage) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to use the following code and getting a TypeError : 'FileBrowserSite' object is not callable. I am wanting to just override the default directory so when the user goes to upload a file the directory changes based upon on object that is changed in a process_request() middleware.