AceCentre / aacnews

This is a small nodejs based app that manages public submissions of short news items that then gets published using a mailchimp campaign. An example of this is AACNews Monthly, managed by the Ace Centre.
https://aacinfo.email
1 stars 3 forks source link

BuildError: ('postview.index_view', {}, None) error #11

Closed willwade closed 8 years ago

willwade commented 9 years ago

The site now runs on Postgres - and uses environment variables. This is an attempt to get it running on heroku or a dokku installation. It worked straight off however I had to change 'user' to 'users' due to a conflict with postgres not liking a table called 'user'.

All was looking good until I tried to access /admin - or create a post. The following occurs when trying to access /admin

2015-02-16T22:36:31.191809+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
2015-02-16T22:36:31.191814+00:00 app[web.1]:     {% extends 'admin/master.html' %}
2015-02-16T22:36:31.191817+00:00 app[web.1]:     {% extends admin_base_template %}
2015-02-16T22:36:31.191812+00:00 app[web.1]:   File "/app/templates/admin/index.html", line 1, in top-level template code
2015-02-16T22:36:31.191816+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask_admin/templates/bootstrap2/admin/master.html", line 1, in top-level template code
2015-02-16T22:36:31.191819+00:00 app[web.1]:   File "/app/templates/my_master.html", line 1, in top-level template code
2015-02-16T22:36:31.191821+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask_admin/templates/bootstrap2/admin/base.html", line 23, in top-level template code
2015-02-16T22:36:31.191824+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask_admin/templates/bootstrap2/admin/base.html", line 30, in block "page_body"
2015-02-16T22:36:31.191827+00:00 app[web.1]:   File "/app/templates/my_master.html", line 30, in block "main_menu"
2015-02-16T22:36:31.191830+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/helpers.py", line 312, in url_for
2015-02-16T22:36:31.191844+00:00 app[web.1]:     return appctx.app.handle_url_build_error(error, endpoint, values)
2015-02-16T22:36:31.191845+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1641, in handle_url_build_error
2015-02-16T22:36:31.191851+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/werkzeug/routing.py", line 1649, in build
2015-02-16T22:36:31.191850+00:00 app[web.1]:     force_external=external)
2015-02-16T22:36:31.191825+00:00 app[web.1]:     {% block main_menu %}
2015-02-16T22:36:31.191828+00:00 app[web.1]:     {% set postview = url_for('postview.index_view') %}
2015-02-16T22:36:31.191852+00:00 app[web.1]:     raise BuildError(endpoint, values, method)
2015-02-16T22:36:31.191847+00:00 app[web.1]:     reraise(exc_type, exc_value, tb)
2015-02-16T22:36:31.191848+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/helpers.py", line 305, in url_for
2015-02-16T22:36:31.191823+00:00 app[web.1]:     {% block page_body %}
2015-02-16T22:36:31.191854+00:00 app[web.1]: BuildError: ('postview.index_view', {}, None)

I can't work out what is going wrong with BuildError. Rather annoyingly I can't see if this is a local problem or something due to the way Heroku requires its files..

Any help much appreciated!

w