惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
A
About on SuperTechFans
J
Java Code Geeks
量子位
博客园 - 三生石上(FineUI控件)
博客园 - Franky
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

Heroku

请教:用 Heroku 跑应用费用会比用普通的云服务器差多少? 现在还有人在用 heroku 吗, 是不是已经凉凉了 Heroku 不再有免费的了~ Heroku 账号没了 Heroku 是崩了吗? Heroku 的 nodejs 如何将提交的表单信息写入文件? Heroku 部署失败,提示 TemplateDoesNotExist at / Learning_logs/base.html 用了 heroku 的 PaaS,国内访问很慢,有什么解决方案,域名没备案! 管理 heroku postgre 开源类Heroku平台 有用heroku的么 heroku 提交失败 heroku postgresql 是否收费? 玩了下 Heroku,掛了. 不關我事哈 Heroku 首页的四次变迁 heroku/aws有没有加速的办法?earbits.com国内电信很慢~~~ Heroku现在非得付费才能用吗?有没有其他啥的免费的? Heroku 支持 Python 和 PHP 了 Matz joins Heroku heroku 似乎给强了,histart.me 广东地区无法访问 Salesforce.com Buys Heroku!!! 直播:Linux下试玩Heroku 头疼:如何安装heroku? 这里有人用HEROKU吗? heroku.com 的交互设计非常棒 来推荐我的开源独立博客程序,可以直接运行在 Heroku 上面(免费可绑定域名)
求助: django 部署在 heroku , 数据库出问题, 想知道在 免...
raiz · 2015-07-05 · via Heroku

1. 我开发环境是 python34 django 1.8.1
2. 本地用数据库是 sqlite3, heroku 用到 postgres
3. 我部署在heroku上是给另一个人测试用的,由于一直变更需求,表结构要变
4. 我情景是,我之前的工程已经在 herok 上跑,没有问题, 然后我在 model中添加了一个 class Message(models.Model): user = models.ForeignKey('GameUser') 而 GameUser 是原来有的一个model
5. 然后我push了,然后在heroku 上执行
python manage.py makemigrations
python manage.py migrate
然后进入 python manage.py shell , 导入model后, 执行 Message.objects.all() ,提示上面的提问里错误
Traceback (most recent call last):
File "", line 1, in
File "/app/.heroku/pythonb/python3.4/site-packages/django/models/query.py", line 138, in __repr__
data = list(self[:REPR_OUTPUT_SIZE + 1])
File "/app/.heroku/pythonb/python3.4/site-packages/django/models/query.py", line 162, in __iter__
self._fetch_all()
File "/app/.heroku/pythonb/python3.4/site-packages/django/models/query.py", line 965, in _fetch_all
self._result_cache = list(self.iterator())
File "/app/.heroku/pythonb/python3.4/site-packages/django/models/query.py", line 238, in iterator
results = compiler.execute_sql()
File "/app/.heroku/pythonb/python3.4/site-packages/django/modelsl/compiler.py", line 837, in execute_sql
cursor.execute(sql, params)
File "/app/.heroku/pythonb/python3.4/site-packages/django/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/app/.heroku/pythonb/python3.4/site-packages/django/utils.py", line 97, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/app/.heroku/pythonb/python3.4/site-packages/django/utils/six.py", line 658, in reraise
raise value.with_traceback(tb)
File "/app/.heroku/pythonb/python3.4/site-packages/django/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "dbmanager_message" does not exist
LINE 1: ..."msg_code", "dbmanager_message"."parameters" FROM "dbmanager...
然而执行 GameUser.objects.all() 并不会报错