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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Schneier on Security
The Last Watchdog
The Last Watchdog
Cyberwarzone
Cyberwarzone
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
The Cloudflare Blog
V
V2EX
博客园_首页
博客园 - 聂微东
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
G
GRAHAM CLULEY
T
Tenable Blog
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
L
LINUX DO - 最新话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
SecWiki News
SecWiki News
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
T
Troy Hunt's Blog
博客园 - 【当耐特】
Forbes - Security
Forbes - Security
H
Hacker News: Front Page
A
About on SuperTechFans
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
D
DataBreaches.Net
P
Privacy & Cybersecurity Law Blog
Schneier on Security
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
D
Docker
P
Proofpoint News Feed

Heroku

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