First time here? Check out the FAQ!
2

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

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
W.F. Yang's avatar
25
W.F. Yang
asked 10 years ago
Evgeny's avatar
13.2k
Evgeny
updated 10 years ago

Comments

see more comments

2 Answers

2

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 10 years ago
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 (10 years ago)

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 (10 years ago)

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

jeffi's avatar jeffi (10 years ago)

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

Evgeny's avatar Evgeny (10 years ago)

Great! It is now working. Thanks so much!

jeffi's avatar jeffi (10 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
nick's avatar
1
nick
answered 10 years ago
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 (10 years ago)
see more comments