V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Gothack  ›  全部回复第 25 页 / 共 25 页
回复总数  488
1 ... 16  17  18  19  20  21  22  23  24  25  
@vmebeh 在linux下面能修复windows分区表么,现在只有linux了。。。
@loading 不是,光盘U盘都不行
@sleu 试过了还是不行。。。
@jay_chiu linux下全盘检查没有问题啊。
2011-12-22 16:56:01 +08:00
回复了 Gothack 创建的主题 Python django跟apache用mod_python整合时遇到问题
@clino 在urlpattern设置一下就好了。。
2011-12-21 21:55:46 +08:00
回复了 Gothack 创建的主题 Python django跟apache用mod_python整合时遇到问题
好吧,搞定了。sys.path的问题
2011-12-21 20:48:28 +08:00
回复了 Gothack 创建的主题 Python django跟apache用mod_python整合时遇到问题
@tioover @clino 我用mod_wsgi也是这个错,看来就是路径的问题,但是实在找不错是哪里的错误
2011-12-21 13:41:26 +08:00
回复了 Gothack 创建的主题 Python django跟apache用mod_python整合时遇到问题
@imom0 @clker 这是我的配置,实在看不出问题。。。求教
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/Django/stranger
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /images/ "/home/Django/stranger/static/images/"
<Directory "/home/Django/stranger/static/images">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
</Directory>
#control images
<Location /images/>
Order allow,deny
allow from all
</Location>
<Location "/">
SetHandler python-program
PythonPath "['/home/Django']+sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE stranger.settings
# PythonOption django.root /stranger
PythonAutoReload On
PythonDebug On
</Location>
Alias /static /home/Django/stranger/static/
<Location "/static/">
SetHandler None
</Location>
ErrorLog /var/log/apache2/newtest.log
logLevel warn
</VirtualHost>
1 ... 16  17  18  19  20  21  22  23  24  25  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2570 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 11:27 · PVG 19:27 · LAX 04:27 · JFK 07:27
Developed with CodeLauncher
♥ Do have faith in what you're doing.