database - Heroku Django : Running a Worker

标签 database django heroku django-celery django-syncdb

我正在关注 Heroku Django tutorial .我相信我完全遵循了它。除了他们要求的之外,我没有运行其他命令。

但是,当我到达同步 Celery 和 Kombu 表的部分(在“运行 worker ”部分下)时,我遇到了一个错误。

输入他们的命令 python hellodjango/manage.py syncdb,得到以下信息:

...
File "/Users/Alex/Coding/getcelery/venv/lib/python2.7/site-packages/django/db/backends/dummy/base.py", line 15, in complain
    raise ImproperlyConfigured("You haven't set the database ENGINE setting yet.")
django.core.exceptions.ImproperlyConfigured: You haven't set the database ENGINE setting yet.

以前有人遇到过这个问题吗?我应该做一些教程中没有明确说明的事情吗?

如有任何提示,我们将不胜感激!

最佳答案

您的输出来自本地运行 syncdb。启用数据库插件将在您的配置中设置 DATABASE_URL,从而设置 dynos 的环境(参见 heroku config)。它不会做的是在本地设置 DATABASE_URL - 你需要自己做(或对其他本地数据库进行排序)

关于database - Heroku Django : Running a Worker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9572870/

相关文章:

python - createsuperuser 命令中的 django+heroku+postgres 错误,它给出错误 "psycopg2.errors.UndefinedTable: relation "users_profile“不存在”

database - 在 ubuntu 上安装 oracle 10g xe。登录和创建数据库的问题

mysql - 如何计算平均值?

python - Postgres 用户未连接到数据库。即使环境变量设置正确

django - 如何在 Django 中使用 Pusher?

python - 将 YAML 转换为 JSON 时出错 : yaml: line 3: did not find expected key

php - 这是 MYSQL 或 PHP 错误吗?当mysql_fetch_array

php - 如何使用php备份mysql数据库

python - render_to_response 给出 TemplateDoesNotExist

ssl - 如何为 Heroku 上的 Spring Boot 应用程序强制使用 HTTPS?