我想仅在浏览器不是IE时才包含JavaScript文件.有没有办法做到这一点?
这是我在Apache错误日志中遇到的错误:
[Sun Aug 22 16:52:06 2010] [error] [client 127.0.0.1] ImportError: No module named settings
这是我的.wsgi文件,根据这篇博文:
import sys
sys.path.insert(0, '/home/wot/django-projects/aedo')
import settings
import django.core.management
django.core.management.setup_environ(settings)
utility = django.core.management.ManagementUtility()
command = utility.fetch_command('runserver')
command.validate()
import django.conf
import django.utils
django.utils.translation.activate(django.conf.settings.LANGUAGE_CODE)
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Run Code Online (Sandbox Code Playgroud)
我已经对路径名进行了两次和三次检查,这确实是我的项目文件的路径.我一直试图让这个工作几个小时,并做了很多谷歌搜索.我在这里要求作为我的最后手段.我很绝望!
编辑:我知道SA上有类似的问题,我已经阅读了大部分内容,但无济于事