相关疑难解决方法(0)

Django - 没有名为app的模块

我一直试图用django编写一个应用程序 - 但它根本不起作用.我已经工作了一段时间 - 它正在完美地开发dev-server.但我无法投入生产环境(apahce).

我的项目名称是apstat,应用程序名称是基本的.

我尝试按如下方式访问它

Blockquote http:// hostname/apstat

但它显示以下错误:

MOD_PYTHON ERROR

ProcessId:      6002
Interpreter:    'domU-12-31-39-06-DD-F4.compute-1.internal'

ServerName:     'domU-12-31-39-06-DD-F4.compute-1.internal'
DocumentRoot:   '/home/ubuntu/server/'

URI:            '/apstat/'
Location:       '/apstat'
Directory:      None
Filename:       '/home/ubuntu/server/apstat/'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/usr/lib/pymodules/python2.6/django/core/handlers/modpython.py", line 228, in handler
    return ModPythonHandler()(req)

  File "/usr/lib/pymodules/python2.6/django/core/handlers/modpython.py", …
Run Code Online (Sandbox Code Playgroud)

apache django

12
推荐指数
1
解决办法
3万
查看次数

标签 统计

apache ×1

django ×1