On 8/2/06, 冷星独舞 <[EMAIL PROTECTED]> wrote:
>
> 我在httpd.conf下,add this:
> Listen 127.0.0.1:8888
> <VirtualHost 127.0.0.1:8888>
>     <Location "/">
>         SetHandler python-program
>         PythonPath
> "['C:\Python24\Lib\site-packages\Django-0.95-py2.4.egg\django\bin\work']
> + sys.path"
>         PythonHandler django.core.handlers.modpython
>         SetEnv DJANGO_SETTINGS_MODULE n.settings_apache
>         PythonAutoReload Off
>         PythonDebug On
>     </Location>
>     Alias /site_media
> d:/project/svn/limodou/django-stepbystep/newtest/newtest/media
>     Alias /media
> C:/Python24/Lib/site-packages/Django-0.91-py2.4.egg/django/contrib/admin/media
>     <Location "/site_media">
>         SetHandler None
>     </Location>
>     <Location "/media">
>         SetHandler None
>     </Location>
> </VirtualHost>
> then,apache can't restart?and say that:the requested operation has
> failed . 这是为什么呢,谁能帮我一 下。who can help me?
>
You'v read my Chinese Django tutorial, but you don't do according to
the steps of the document. Please check:

n.settings_apache

I think it should be:

newtest.settings_apache

and in tutorial, PythonPath should be :

PythonPath "['D:/project/svn/limodou/django-stepbystep/newtest'] + sys.path"

but not:

PythonPath 
"['C:\Python24\Lib\site-packages\Django-0.95-py2.4.egg\django\bin\work']
+ sys.path"

Many things are different from my tutorial. Please test carefully.
-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to