python - pythonanywhere:错误代码:未处理的异常
问题描述
嗨伙计们。当尝试使用 pythonanywhere 部署我的 django 站点时,我收到一个错误:
这里是我的 WSGI 配置文件:/var/www/cargoglobal_pythonanywhere_com_wsgi.py:
import os
import sys
path = '/home/cargoglobal/CargoGlobal.net'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'elansayti.settings'
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = DjangoWhiteNoise(get_wsgi_application())
这里是我的项目 wsgi.py:
"""
WSGI config for elansayti project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'elansayti.settings')
application = get_wsgi_application()
请帮帮我,我是一个非常无助的人。
解决方案
推荐阅读
- angularjs - 角度下拉列表在选项上方有一个空行
- assembly - 为什么 BIOS 入口点以 WBINVD 指令开头?
- c++11 - 有没有办法在 Range-v3 中拥有读写视图?
- go - 嵌套结构未更新
- ruby-on-rails - 我的 Ruby on Rails 应用程序页面只打印 JSON 数据,不读取任何 HTML
- c# - 阿拉伯文字显示编码
- ibm-cloud - Watson NLU 的 Sentiment 特征示例失败,错误代码为 400
- mongodb - Spring-data 2.1 使用 kotlin 获取“UnsupportedOperationException:没有访问器设置属性”
- node.js - 在 TypeScript 中使用 instanceof
- linux - 内核在内核空间中所处的上下文