Changeset - 3fe5f09d18cf
[Not reviewed]
0 1 0
Brett Smith (brett) - 7 years ago 2016-12-06 02:14:45
brett@sfconservancy.org
static: Remove hardcoded path.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/views.py
Show inline comments
 
import mimetypes
 
import os.path
 
from django.http import HttpResponse
 
from django.template import RequestContext, loader
 
from conservancy.apps.fundgoal.models import FundraisingGoal as FundraisingGoal
 

	
 
STATIC_ROOT = '/home/www/website/www/conservancy/static/'
 
STATIC_ROOT = os.path.abspath(os.path.dirname(__file__))
 
FILESYSTEM_ENCODING = 'utf-8'
 

	
 
def handler(request, errorcode):
 
    path = os.path.join('error', errorcode, 'index.html')
 
    fullpath = os.path.join(STATIC_ROOT, path)
 
    if not os.path.exists(fullpath):
0 comments (0 inline, 0 general)