Python论坛  - 讨论区

标题:[python-chinese] Django路径问题

2008年01月09日 星期三 23:25

cougar2008 cougar2008在gmail.com
星期三 一月 9 23:25:35 HKT 2008

Win2003ºÍVistaÖпª·¢µÄ£¬settings.pyÖÐÏà¶Ô·¾¶Ã»ÎÊÌ⣬

·Åµ½freebsdÉϵÄʱºò³öÎÊÌ⣬ҪÓþø¶Ô·¾¶²Å¿ÉÒÔ£¬¿´Ä£°åµÄÅäÖÃÎļþÀïÓÐÒ»¾ä˵Ã÷£¬ÎªÉ¶²»ÄÜÓÃÏà¶Ô·¾¶ÄØ£¿¶øÇÒ¿ÉÊÇwinÏ¿ÉÒÔ°¡

django 0.96.1 freebsd port °²×°µÄ

TEMPLATE_DIRS = (
    # 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.
    #'/home/cougar/djangosite/templates',
    './templates',
)





cougar2008
2008-01-09
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080109/16cc2fb4/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月10日 星期四 03:57

etng etng2004在gmail.com
星期四 一月 10 03:57:10 HKT 2008

ÎÒÊÇÕâÑù¸ÉµÄ£º

> import os
> SITE_ROOT      = os.path.dirname(os.path.abspath(__file__))
> TEMPLATE_DIRS = (
>     # 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.
>     os.path.join(SITE_ROOT, 'templates')
> )
>

On Jan 9, 2008 11:25 PM, cougar2008 <cougar2008在gmail.com> wrote:

>  Win2003ºÍVistaÖпª·¢µÄ£¬settings.pyÖÐÏà¶Ô·¾¶Ã»ÎÊÌ⣬
>
> ·Åµ½freebsdÉϵÄʱºò³öÎÊÌ⣬ҪÓþø¶Ô·¾¶²Å¿ÉÒÔ£¬¿´Ä£°åµÄÅäÖÃÎļþÀïÓÐÒ»¾ä˵Ã÷£¬ÎªÉ¶²»ÄÜÓÃÏà¶Ô·¾¶ÄØ£¿¶øÇÒ¿ÉÊÇwinÏ¿ÉÒÔ°¡
>
> django 0.96.1 freebsd port °²×°µÄ
>
> TEMPLATE_DIRS = (
>     # 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.
>     #'/home/cougar/djangosite/templates',
>     './templates',
> )
>
>
>  ------------------------------
>  cougar2008
> 2008-01-09
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
http://www.etng.net/blog
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080110/0a7a7680/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2024

    京ICP备05028076号