Python论坛  - 讨论区

标题:[python-chinese] Apache中如何配置Django网站

2007年11月29日 星期四 22:13

阿杰 gujiajie在gmail.com
星期四 十一月 29 22:13:59 HKT 2007

¸Õ½Ó´¥apacheºÍdjango,
×öÁ˸ödjangoµÄÍøÕ¾²»ÖªÔõôÓÃapache2·¢²¼?ÊÔÁ˺ö෽·¨¶¼²»ÐУ¬¶¼ÊÇ404´íÎó¡«¡«
Çë½Ìϸ÷λ¡«

ÎÒÔÚhttpd.confÖÐÌí¼ÓµÄÄÚÈÝ£º



SetHandler Python_program
PythonHandler django.core.handler.modpython
PythonPath "['/home/jay/DjangoProject/'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE mytest.settings
PythonDebug On


ÊÇ·ñÓÐ´í£¬»¹ÊÇÐèÒªÐÞ¸ÄÆäËûµÄÅäÖã¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071129/134135c1/attachment.htm 

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

2007年11月30日 星期五 08:49

liz shengyan1985在gmail.com
星期五 十一月 30 08:49:20 HKT 2007

¿ÉÒÔ¿´¿´apacheµÄÈÕÖ¾ÉϵļǼ¡£¡£¡£
ÁíÍ⣬¼ÓÈëÒ»ÏÂÕâ¸öÊÔÊÔ

    Options FollowSymLinks
    AllowOverride None
    Order deny,allow



ÔÚ07-11-29£¬°¢½Ü <gujiajie在gmail.com> дµÀ£º
>
> ¸Õ½Ó´¥apacheºÍdjango,
> ×öÁ˸ödjangoµÄÍøÕ¾²»ÖªÔõôÓÃapache2·¢²¼?ÊÔÁ˺ö෽·¨¶¼²»ÐУ¬¶¼ÊÇ404´íÎó¡«¡«
> Çë½Ìϸ÷λ¡«
>
> ÎÒÔÚhttpd.confÖÐÌí¼ÓµÄÄÚÈÝ£º
>
> 
> 
> SetHandler Python_program
> PythonHandler django.core.handler.modpython
> PythonPath "['/home/jay/DjangoProject/'] + sys.path"
> SetEnv DJANGO_SETTINGS_MODULE mytest.settings
> PythonDebug On
> 
> 
> ÊÇ·ñÓÐ´í£¬»¹ÊÇÐèÒªÐÞ¸ÄÆäËûµÄÅäÖã¿
>
> _______________________________________________
> 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
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071130/61d61523/attachment.html 

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

2007年11月30日 星期五 10:45

jeff jie bbmyth在gmail.com
星期五 十一月 30 10:45:05 HKT 2007

http://www.fallever.com/blog/jeff/12/  °²×°Mod_python
http://www.fallever.com/blog/jeff/13/ python + mod_python
ÊÇÎÒ×Ô¼º´î½¨µÄ¹ý³Ì£¬Ï£Íû¶ÔÄãÓаïÖú¡£

ÔÚ07-11-30£¬liz <shengyan1985在gmail.com> дµÀ£º
>
> ¿ÉÒÔ¿´¿´apacheµÄÈÕÖ¾ÉϵļǼ¡£¡£¡£
> ÁíÍ⣬¼ÓÈëÒ»ÏÂÕâ¸öÊÔÊÔ
> 
>     Options FollowSymLinks
>     AllowOverride None
>     Order deny,allow
> 
>
>
> ÔÚ07-11-29£¬°¢½Ü <gujiajie在gmail.com> дµÀ£º
> >
> > ¸Õ½Ó´¥apacheºÍdjango,
> > ×öÁ˸ödjangoµÄÍøÕ¾²»ÖªÔõôÓÃapache2·¢²¼?ÊÔÁ˺ö෽·¨¶¼²»ÐУ¬¶¼ÊÇ404´íÎó¡«¡«
> > Çë½Ìϸ÷λ¡«
> >
> > ÎÒÔÚhttpd.confÖÐÌí¼ÓµÄÄÚÈÝ£º
> >
> > 
> > 
> > SetHandler Python_program
> > PythonHandler django.core.handler.modpython
> > PythonPath "['/home/jay/DjangoProject/'] + sys.path"
> > SetEnv DJANGO_SETTINGS_MODULE mytest.settings
> > PythonDebug On
> > 
> > 
> > ÊÇ·ñÓÐ´í£¬»¹ÊÇÐèÒªÐÞ¸ÄÆäËûµÄÅäÖã¿
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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
>



-- 
site:http://www.fallever.com
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071130/546c78d4/attachment.htm 

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

2007年11月30日 星期五 10:51

阿杰 gujiajie在gmail.com
星期五 十一月 30 10:51:34 HKT 2007

×ÜËã¸ã¶¨ÁË£¬²»¹ýÈçºÎ²âÊÔmod_pythonÊÇ·ñÔÚ¹¤×÷

ÔÚ07-11-30£¬jeff jie <bbmyth在gmail.com> дµÀ£º
>
> http://www.fallever.com/blog/jeff/12/  °²×°Mod_python
> http://www.fallever.com/blog/jeff/13/ python + mod_python
> ÊÇÎÒ×Ô¼º´î½¨µÄ¹ý³Ì£¬Ï£Íû¶ÔÄãÓаïÖú¡£
>
> ÔÚ07-11-30£¬liz <shengyan1985在gmail.com> дµÀ£º
> >
> > ¿ÉÒÔ¿´¿´apacheµÄÈÕÖ¾ÉϵļǼ¡£¡£¡£
> > ÁíÍ⣬¼ÓÈëÒ»ÏÂÕâ¸öÊÔÊÔ
> > 
> >     Options FollowSymLinks
> >     AllowOverride None
> >     Order deny,allow
> > 
> >
> >
> > ÔÚ07-11-29£¬°¢½Ü <gujiajie在gmail.com> дµÀ£º
> > >
> > >  ¸Õ½Ó´¥apacheºÍdjango,
> > > ×öÁ˸ödjangoµÄÍøÕ¾²»ÖªÔõôÓÃapache2·¢²¼?ÊÔÁ˺ö෽·¨¶¼²»ÐУ¬¶¼ÊÇ404´íÎó¡«¡«
> > > Çë½Ìϸ÷λ¡«
> > >
> > > ÎÒÔÚhttpd.confÖÐÌí¼ÓµÄÄÚÈÝ£º
> > >
> > > 
> > > 
> > > SetHandler Python_program
> > > PythonHandler django.core.handler.modpython
> > > PythonPath "['/home/jay/DjangoProject/'] + sys.path"
> > > SetEnv DJANGO_SETTINGS_MODULE mytest.settings
> > > PythonDebug On
> > > 
> > > 
> > > ÊÇ·ñÓÐ´í£¬»¹ÊÇÐèÒªÐÞ¸ÄÆäËûµÄÅäÖã¿
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > _______________________________________________
> > 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
> >
>
>
>
> --
> site:http://www.fallever.com
> _______________________________________________
> 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
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071130/8510e975/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号