`
nqp_java
  • 浏览: 77824 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论

window 搭建osqa 运行异常

阅读更多

 

  1. Sep 29

    Irfan Haider says:

    I got error when tried to run on Windows 7. Note that server is running without ...

    I got error when tried to run on Windows 7.
    Note that server is running without any issue.

    D:\osqa>manage.py runserver

    Validating models...

    0 errors found

    Django version 1.4.1, using settings 'osqa.settings'

    *Development server is running at http://127.0.0.1:8000/*

    Quit the server with CTRL-BREAK.

    Traceback (most recent call last):

      File "D:\Python27\lib\wsgiref\handlers.py", line 85, in run

        self.result = application(self.environ, self.start_response)

      File "D:\Python27\lib\site-packages\django-1.4.1-py2.7.egg\django\contrib\staticfiles\handlers.py", line 67, in _call_

        return self.application(environ, start_response)

      File "D:\Python27\lib\site-packages\django-1.4.1-py2.7.egg\django\core\handlers\wsgi.py", line 219, in _call_

        self.load_middleware()

      File "D:\Python27\lib\site-packages\django-1.4.1-py2.7.egg\django\core\handlers\base.py", line 51, in load_middleware

        raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

    ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

    [30/Sep/2012 02:16:52] "GET / HTTP/1.1" 500 59

    Traceback (most recent call last):

      File "D:\Python27\lib\wsgiref\handlers.py", line 85, in run

        self.result = application(self.environ, self.start_response)

      File "D:\Python27\lib\site-packages\django-1.4.1-py2.7.egg\django\contrib\staticfiles\handlers.py", line 67, in _call_

        return self.application(environ, start_response)

      File "D:\Python27\lib\site-packages\django-1.4.1-py2.7.egg\django\core\handlers\wsgi.py", line 219, in _call_

        self.load_middleware()

      File "D:\Python27\lib\site-packages\django-1.4.1-py2.7.egg\django\core\handlers\base.py", line 51, in load_middleware

        raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname))

    ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class

    Solution:

    Use Django version 1.3.1 and now everything is working fine (OSQA is now running on my local machine)

    If you have installed latest version 1.4.x then you first you delete it and install version 1.3.1.

    1. From your python site-packages directory delete django-1.4.x-pyx.x.egg

     Example: D:\Python27\Lib\site-packages\django-1.4.2-py2.7.egg   

     

    2. Install Django version 1.3.1 with following command

     

     

    easy_install Django==1.3.1

     
分享到:
评论

相关推荐

    安装OSQA步骤和所需全部软件

    安装OSQA步骤和所需软件【1】: python-2.6.2.msi easy_install:setuptools-0.6c11.win32-py2.6.exe Django-1.2.tar.gz OSQA安装全过程.doc 因每次只能上传20MB以内的文件,分批上传。

    osqa 开源问答软件

    2. **环境准备**:OSQA通常依赖于Python运行环境,因此确保你已经安装了Python,最好是Python 2.7或更高版本,因为一些旧版本的OSQA可能不支持Python 3。同时,你也需要安装像Numpy、PIL、SQLAlchemy等Python库。 3...

    puppet-module-osqa:用于部署 osqa 的 Puppet 模块

    OSQA Puppet 模块 该模块使用 Mysql 和 Apache 安装和配置 OSQA ( )。 从源安装最新的不稳定 osqa 模块 cd /etc/puppet/modules git clone git://github.com/Derpstack/puppet-module-osqa.git osqa cd osqa gem ...

    osqa:开放学习问题与解答

    "OSQA:开放学习问题与解答"是一个在线问答平台,旨在促进知识共享和协作学习。这个平台的核心功能是提供一个用户友好的环境,让人们可以提出问题、分享答案,并围绕特定主题进行讨论。作为与HTML相关的资源,我们...

    Darby-开源

    OSQA 平台主题。

    ud617:一些 Python MapReduce 代码来分析文本文件(日志、论坛线程......)

    Udacity 论坛在名为 OSQA 的免费开源软件上运行,该软件的设计类似于 StackOverflow 论坛。 基本结构是——论坛有节点。 所有节点都有一个 body 和 author_id。 顶级节点称为问题,也有标题和标签。 问题可以有答案...

    forums:问答网站的开源解决方案

    2. **OSQA**:OSQA是另一个开源问答系统,提供积分系统、标签、投票等功能,便于搭建类似Quora的网站。 3. **Question2Answer**:专为在线教育和知识分享设计,Question2Answer提供了完整的问答功能,包括搜索、...

    askbot开源问答系统

    这款系统设计目标是提供一个用户友好、互动性强的社区环境,让人们能够提出问题并得到其他用户的解答,类似于知名的Stack Overflow或OSQA(Open Source Question and Answering)平台。 在【描述】中提到,Askbot的...

    Kunjika:质量检查和博客框架。 新的实施即将到来

    坤吉卡 “它是由错误组成的软件。... Askbot可以替代OSQA,但是所有这些都变得商业化,这既糟糕又丑陋。 无法相信他们将开发开源版本多长时间。 DZone实际上使用开源社区来测试其产品,然后将其全部拿走。

    算法文档,来看看吧

    [原网页] 从LSM-Tree、COLA-Tree谈到StackOverflow、OSQA [原网页] 程序员编程艺术第一~二十七章集锦与总结(教你如何编程),及PDF免分下载 [原网页] 教你如何迅速秒杀掉:99%的海量数据处理面试题 [原网页] 程序员...

Global site tag (gtag.js) - Google Analytics