先简略记载步骤:
Archive for 系统
没有认真读 apache 官方文档,先自己研究了一下。windows下修改httpd.conf可以用了,做笔记。 添加代码:
LoadModule python_module modules/mod_python.so <Location "/"> SetHandler python-program PythonPath "sys.path+['D:/django']" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE plant.settings PythonInterpreter plant PythonDebug On </Location>
<Location "/media/"> SetHandler none </Location>
修改代码: DocumentRoot "D:/django/plant" 静态文件路径。 不知道配置是否有问题 ,先做一个小搭建个环境做测试。 看官方文档后再修改。把文件夹选项中的隐藏已知文件扩展名前面的勾去掉 然后把EXE文件改名成为.scr文件,比如,1.exe 改为 1.scr 放到windows目录下, 然后就可以在屏幕保护选择那里看到了,选择就行了。