Show
Ignore:
Timestamp:
02/16/09 16:50:17 (13 months ago)
Author:
JensDiemer
Message:

Work-in-progress: move some code from filemanager plugin into a shared destination. It's usefull for "filesystem based plugins" such as the gallery. Change the settings for the filemanager base path. Every fs-plugin should use this path information.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid_project/PyLucid/settings_example.py

    r1800 r1825  
    177177ADMIN_MEDIA_PREFIX = "/django/contrib/admin/media/" 
    178178 
    179 # Base path for the filemanager plugin 
    180 # You can add more path for the plugin. 
    181 FILEMANAGER_BASEPATHS = ( 
    182     MEDIA_ROOT, 
    183     #"./static/", 
    184 ) 
     179# Base path for all filesystem bases plugins, e.g. Filemanager, Gallery 
     180# The dict key would be inserted into the url. 
     181# Every item is a tupel containing the filesystem path and the url. 
     182# You can add more path, if you need them! 
     183FILESYSTEM_BASEPATHS = { 
     184    "media": (MEDIA_ROOT, MEDIA_URL), 
     185    # "downloads": ("/var/www/media/downloads/", "/downloads/"), 
     186    # "my files": ("./my_static_files/", "http://static.your_domain.net/"), 
     187    # ... 
     188} 
    185189 
    186190"""