我正在尝试将django CMS应用程序部署到PythonAnywhere或Heroku,但是我一直在Heroku上得到这个错误:
ProgrammingError at /
relation "cms_urlconfrevision" does not exist
LINE 1: ...sion"."id", "cms_urlconfrevision"."revision" FROM "cms_urlco...
而PythonAnywhere上的错误是:
OperationalError at /
no such
我是django的新手,我正在做一个coursera课程,在pythonanywhere上部署了一些小应用程序,到目前为止工作得很好。不,我卡住了,因为根本没有加载。Pythonanywhere说出了问题。这是来自pythonanywhere的错误日志。运行WSGI应用程序ModuleNotFoundError时出错:没有名为'django_extensions‘的模块这是我的WSGI文件 """
WSGI config for mysite project.
It exposes the WSGI callable as a module-leve
因此,我对我的模型进行了更改。我添加了添加图片的可能性。它在我的电脑上运行良好,但当我尝试将它应用到internet的互联网上时,它不能正常工作。在那里,即使在管理面板,我不能添加食谱。我尝试删除迁移,然后再次迁移,但没有帮助。现在内部网上的网站不工作了,但在我的本地服务器上一切正常。我不知道如何修复它。 我的网站:http://lui93.pythonanywhere.com/accounts/search/?q=sok OperationalError at /accounts/search/
no such column: drinks_recipe.recipe_image
Ope
我做了一个项目,我想在PythonAnywhere上托管它,但是如果我运行我的应用程序,我的模板不存在错误。
Setting.py
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used i
我已经将我的站点放在PythonAnywhere中,但是当我试图通过浏览器查看它时,它会生成一个错误。这和秘密钥匙有关。在项目中(用pycharm创建),秘密密钥存储在.env文件中,在PythonAnywhere中,密钥存储在.profile文件中的环境变量中。
下面是.profile文件的运行方式:
# Ensures bash settings are also loaded when using SSH access
source ~/.bashrc
export SECRET_KEY='django_secret_key'
下面是日志错误:
2022-05-01 20
我在使用最新的django加载django管理的静态文件时遇到了问题。现在,我已经尝试了多种方法,并将非常感谢帮助。有关使用pythonanywhere部署的信息。
This is the settings.py file
"""
Django settings for MyDjangoApp project.
Generated by 'django-admin startproject' using Django 2.2.15.
For more information on this file, see
https://docs.dja
我在pythonanywhere上部署了一个应用程序,运行良好。问题是,当我想运行test时,我的测试数据库设置被完全忽略了。每次运行测试时,我都会得到以下message.though。
Creating test database for alias 'default'...
Got an error creating the test database: (1044, "Access denie
我在pythonanywhere.com上部署了django应用程序。我看到了这个错误。我找了很多,但什么也没找到。我被wsgi困住了,不知道该怎么处理它。请帮帮忙
2020-05-27 04:56:19,548: Error running WSGI application
2020-05-27 04:56:19,549: NameError: name 'BASE_DIR' is not defined
2020-05-27 04:56:19,549: File "/var/www/rashidtaha_pythonanywhere_com_wsgi.py
我在PythonAnywhere网站托管平台上使用Python3.5.2的Django 1.10,我试图用我的Django超级用户adminuser登录到Admin站点,但是我遇到了这个错误,
OperationalError at /admin/login/ (1044, "Access denied for user adminuser
有什么问题吗?
我在任何地方都部署了我的网站。到站点的链接是AbuTheRayhan.pythonanywhere.com,但是服务器说
Something went wrong :-(
Something went wrong while trying to load this website; please try again later.
If it is your site, you should check your logs to determine what the problem is.
关于错误日志
Error running WSGI application
ModuleNotFoun