First time here? Check out the FAQ!
1

'status' of users created not using AskBot
 

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'?

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)
siovene's avatar
431
siovene
asked 12 years ago

Comments

see more comments

1 Answer

0

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.

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 12 years ago, updated 12 years ago
link

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's avatar siovene (12 years ago)

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

siovene's avatar siovene (12 years ago)

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

siovene's avatar siovene (12 years ago)

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

Evgeny's avatar Evgeny (12 years ago)

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's avatar siovene (12 years ago)
see more comments