Ask Your Question
1

'status' of users created not using AskBot

asked 2012-10-31 13:50:59 -0500

siovene gravatar image siovene flag of Finland
381 7 4 24
http://www.astrobin.com/

Hi, I run Askbot on the same database of my main app, and I prefer to leave the user creation in one place (the main app).

I've noticed that users created by my main app have an empty status: ''.

Shouldn't that be 'a'?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-31 14:13:15 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

updated 2012-10-31 14:15:01 -0500

Try to use the default values.

This is a common problem - how to allow different apps to have their custom user profiles. Django did it one way until version 1.4, now switched to another approach in 1.5.

In askbot we just added fields to auth_user.

IMO - if you are integrating a number of applications into one project, then it's better to have one table for the user profile and maintain it accordingly, which requires some custom database maintenance, otherwise there may be several fields for the same thing like "website", "homepage_url" etc., depending on the app, and then you'd need to synchronize those values.

Maybe something can be improved in askbot code to make maintenance of the user profile table easier.

link publish delete flag offensive edit

Comments

Thanks, I do have a separate model (UserProfile) in my own app, but Askbot doesn't. So how do I get Askbot to save the default values? I suppose it has a post_save hook on User, right?

siovene ( 2012-10-31 14:19:28 -0500 )edit

@Evgeny, just mentioning you in case you missed my comment above :)

siovene ( 2012-10-31 15:31:03 -0500 )edit

PS: I'm almost missing "_personal_####" group names for users that are newly created outside of Askbot.

siovene ( 2012-10-31 15:45:34 -0500 )edit

Sorry, I'm done for the day, will look at this tomorrow.

Evgeny ( 2012-10-31 15:50:19 -0500 )edit

No problem, I actually don't need this anymore. I made my main app provide Open ID, so I will run Askbot on a separate database.

siovene ( 2012-11-01 12:26:59 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-10-31 13:50:59 -0500

Seen: 29 times

Last updated: Oct 31 '12