Show
Ignore:
Timestamp:
02/27/08 16:21:32 (9 months ago)
Author:
JensDiemer
Message:

NEW internal page handling:
-internal pages doesn't store in the database.
-additional CSS/JS files linked as normal static files.
-new path constants in the settings.py
See also: http://pylucid.org/phpBB2/viewtopic.php?t=198
TODO: refactory the insall section and the plugin manager for this. Remove the unused InternalPage? model.

Files:
1 modified

Legend:

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

    r1388 r1449  
    169169MEDIA_ROOT = "./media/" 
    170170 
    171  
    172171# URL that handles the media served from MEDIA_ROOT. 
    173172#     Example-1: "/media/" (default) 
     
    175174#     Example-3: "http://media.your_domain.net/" 
    176175MEDIA_URL = "/media/" 
    177  
    178  
    179 # URL for the PyLucid media files. 
    180 #     Example-1: "/media/PyLucid/" (default) 
    181 #     Examlpe-2: "http://other_domain.net/media/PyLucid/" 
    182 #     Example-3: "http://pylucid.media.your_domain.net/" 
    183 PYLUCID_MEDIA_URL = "/media/PyLucid/" 
    184  
    185176 
    186177# URL prefix for admin media -- CSS, JavaScript and images. 
     
    321312# PYLUCID BASE SETTINGS 
    322313# basic adjustments, witch don't have to be changed. 
     314 
     315# All PyLucid media files stored in a sub directory under the django media 
     316# path. Used for building filesystem path and URLs. 
     317# filesystem path: MEDIA_ROOT + PYLUCID_MEDIA_SUBDIR 
     318# URLs: MEDIA_URL + PYLUCID_MEDIA_SUBDIR 
     319PYLUCID_MEDIA_DIR = "PyLucid" 
     320 
     321# Sub directory name for all default internal pages. It would be used to build 
     322# the filesystem path and the URL! 
     323# filesystem path: MEDIA_ROOT + PYLUCID_MEDIA_SUBDIR + INTERNAL_PAGE_PATH 
     324# URLs: MEDIA_URL + PYLUCID_MEDIA_SUBDIR + INTERNAL_PAGE_PATH 
     325INTERNAL_PAGE_DIR = "internal_page" 
     326 
     327# If you will change a internal page, you must copy a file from 
     328# INTERNAL_PAGE_PATH into this directory. (Same subdirectory!) 
     329# (default: "custom") 
     330# filesystem path: MEDIA_ROOT + PYLUCID_MEDIA_SUBDIR + CUSTOM_INTERNAL_PAGE_PATH 
     331# URLs: MEDIA_URL + PYLUCID_MEDIA_SUBDIR + CUSTOM_INTERNAL_PAGE_PATH 
     332CUSTOM_INTERNAL_PAGE_DIR = "custom" 
     333 
    323334 
    324335# Path to the Plugins