Ignore:
Timestamp:
27/09/12 12:41:13 (7 years ago)
Author:
mnagni
Message:

Incomplete - # 22554: "Remove the ""FollowSymLinks"""
 http://team.ceda.ac.uk/trac/ceda/ticket/22554

Fixes the localhost static files serving

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/MolesManager/settings.py

    r8571 r8573  
    1919 
    2020SITE_ROOT = os.path.dirname(os.path.abspath(__file__)) 
    21 MEDIA_ROOT = os.path.join(SITE_ROOT, 'static') 
    2221 
    2322PROJECT_DIRNAME = SITE_ROOT.split(os.sep)[-1] 
     
    7574# Example: "/home/media/media.lawrence.com/static/" 
    7675STATIC_ROOT = os.path.join(DJANGO_PROJECT, 'static') 
     76print STATIC_ROOT 
    7777 
    7878# URL prefix for static files. 
     
    8383#STATIC_URL = 'http://127.0.0.1:8000/static/' 
    8484#STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL) 
    85 STATIC_URL = '/static/' 
     85STATIC_URL = 'CUSTOM_STATIC_URL' 
     86if STATIC_URL == 'CUSTOM_STATIC_URL': 
     87    STATIC_URL = 'http://127.0.0.1:8000/static/' 
     88print STATIC_URL 
    8689#STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL) 
    8790 
Note: See TracChangeset for help on using the changeset viewer.