These two tables are not created when starting from scratch :

  • forum_openidassociation

  • forum_openidnonce

git repo updated on April 15.

create table , grant as shown in the INSTALL files.

python manage.py syncdb

python manage.py migrate

When trying to login with openid, osqa complains about openidassociation table missing.

Migrating from an old database is fine since these two tables were already created.

asked 15 Apr '10, 22:28

rastafazz's gravatar image

rastafazz
196138
accept rate: 50%

edited 15 Apr '10, 22:32


Hey there,that is a problem with the docs... Those tables are not part of the core, they are bundled in a module that can be enabled/disabled at any time. So the real commands are as follosw:

python manage.py syncdb --all
python manage.py migrate --fake

The first will "force" django to install all the tables independently of south existence, and the second will tell south that whatever migrations you have until now, to pretend that it just applied them and not to try again in future upgrade.

Hope this helps :-)

link

answered 16 Apr '10, 05:32

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

yes, this fixes the issue - thanks

(16 Apr '10, 17:25) rastafazz

After running python manage.py syncdb --all python manage.py migrate --fake, the forum_openidassociation and forum_openidnonce are still not created in mysql. There is actually no openidassociation model defined in the /forum folder in the source.

(15 Dec '10, 06:08) i1der

what are the columns and datatypes of the table if to be created mannually?

(15 Dec '10, 18:10) i1der

I've been trying to run these commands but I get the following message:

manage.py: error: no such option: --all

Is there a way to create these tables manually?

(03 Mar, 23:17) netk

For those installed in CentOS using ActivePython you should run the command above using the path to your python installation:

[root@server OSQA]# /opt/ActivePython-2.6/bin/python manage.py syncdb

That solved the issue for me, OpenID now working correctly. :)

link

answered 03 Mar, 23:44

netk's gravatar image

netk
2315
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×156
×62
×23

Asked: 15 Apr '10, 22:28

Seen: 1,163 times

Last updated: 03 Mar, 23:44

powered by OSQA