From: <bms...@us...> - 2008-02-09 16:47:35
|
Revision: 2616 http://morphix.svn.sourceforge.net/morphix/?rev=2616&view=rev Author: bmsleight Date: 2008-02-09 08:47:30 -0800 (Sat, 09 Feb 2008) Log Message: ----------- Using here() for locations - thanks gandalfar Modified Paths: -------------- trunk/templatetool/settings.py Modified: trunk/templatetool/settings.py =================================================================== --- trunk/templatetool/settings.py 2008-02-09 16:30:37 UTC (rev 2615) +++ trunk/templatetool/settings.py 2008-02-09 16:47:30 UTC (rev 2616) @@ -1,4 +1,6 @@ # Django settings for templatetool project. +import os +here = lambda x: os.path.join(os.path.dirname(__file__),x) DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -37,7 +39,7 @@ # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = '/home/alex/templatetool/media' +MEDIA_ROOT = here('media') # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com" @@ -68,7 +70,7 @@ ROOT_URLCONF = 'templatetool.urls' TEMPLATE_DIRS = ( - '/home/alex/templatetool/tt_templates', + here('templates'), # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |