syncdb can't create admin in Django >= 1.5
Hello, I installed askbot as a part of my project, and it works pretty well but I recently noticed a problem in the admin creation phase when running (python mnage.py syncdb) I get this error : NameError: "global name 'User' is not defined"
I tried Django 1.5, 1.5.4 and I still have same problem I had no problems with django 1.4
Any ideas what is the problem?
Comments
Which commands do you type? Can you reproduce this issue with "askbot-only" installation?
1- I installed askbot 2- I used django (1.5) as askbot-setup doesn't work for higher versions 3- I ran askbot-setup 4- I chose sqlite3, db name = database.db 5- I entered the standalone installation of askbot, and removed the database file (rm database.db) 6- I ran : python manage.py syncdb 7- I chose to add admin 8- I got the error : NameError: global name 'User' is not defined 9- I removed django 1.5 and installed django 1.4 10- I removed the database (rm database.db) 11- I ran : python manage.py syncdb 12 when prompted to add an admin, I chose YES and everything went OK and I was managed to add admin user successfull
btw, I tried to edit the previous comment and add new lines , but it seems askbot ignoring me :)
I am having the same problem. Fresh install askbot in a vritualenv (askbot only). Followed all the official documetnation installation steps. `pip install askbot`. when I follow this step: http://askbot.org/doc/initialize-database-tables.html, and run `python manage.py syncdb`, the following is the output:
I have the same problem with a brand new installation of askbot and postgresql