First time here? Check out the FAQ!
2

UndefinedError at /questions/ask/ 'post_form' is undefined

  • retag add tags

UndefinedError at /questions/ask/ 'post_form' is undefined Request Method: GET Request URL:
Django Version: 1.5.12 Exception Type: UndefinedError Exception Value:
'post_form' is undefined Exception Location: /home/jesonyang001/askbotdev/env/local/lib/python2.7/site-packages/Jinja2-2.7.3-py2.7.egg/jinja2/environment.py in getattr, line 397 Python Executable: /home/jesonyang001/askbotdev/env/bin/python Python Version: 2.7.6

askbot.log file: /home/jesonyang001/askbotdev/askbot/skins/utils.py TIME: 2015-03-17 13:01:16,465 MSG: utils.py:get_media_url:159 missing media resource style/extra.css in skin default

It appear this infomation when i login by admin,but i login by another user everything is worked.

W.F. Yang's avatar
25
W.F. Yang
asked 2015-03-14 12:19:25 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2015-03-18 14:10:42 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

2

There was a bug, just committed a fix to the master branch.

Evgeny's avatar
13.2k
Evgeny
answered 2015-03-17 23:13:02 -0500
edit flag offensive 0 remove flag delete link

Comments

Hi I still see this error with the latest revision 0653e95. It only occurs with admin (i.e. first created) account.

jeffi's avatar jeffi (2015-03-18 02:49:48 -0500) edit

me too,just installed but can't solve this issue that can't post any question when login by admin(ID=1).

W.F. Yang's avatar W.F. Yang (2015-03-18 03:09:19 -0500) edit

Other account (ID>1) also fails if it is given admin privilege.

jeffi's avatar jeffi (2015-03-18 04:49:12 -0500) edit

Sorry, made another update to the master branch, now tested posting and editing questions and answers.

Evgeny's avatar Evgeny (2015-03-18 14:10:20 -0500) edit

Great! It is now working. Thanks so much!

jeffi's avatar jeffi (2015-03-18 22:58:01 -0500) edit
add a comment see more comments
0

I had something like this happen, can't remember if it was exactly the same error. It seemed to be caused by having multiple askbot development projects on the machine and some kind of conflict between them. When I cut back to just one, the problem went away.

nick's avatar
1
nick
answered 2015-03-14 20:17:15 -0500
edit flag offensive 0 remove flag delete link

Comments

i have two project that stable and dev version,but i used virtualenv.i reinstall many time same issue.

W.F. Yang's avatar W.F. Yang (2015-03-16 00:51:46 -0500) edit
add a comment see more comments