
1 imom0 2011-12-21 11:52:14 +08:00 路径问题。 |
2 clker 2011-12-21 12:29:17 +08:00 static 文件路径要重新设置。具体google一下 |
3 Gothack OP @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> |
4 clino 2011-12-21 15:57:56 +08:00 用 mod_wsgi 不是更好吗 |
5 tioover 2011-12-21 16:21:33 +08:00 via Android mod_python不是过时了嘛 |
7 Gothack OP 好吧,搞定了。sys.path的问题 |
8 clino 2011-12-21 22:39:55 +08:00 via iPad 我还刚想说在apache里把环境变量打出来看看呢 |