|
Hi, I want to install OSQA in a Django site with an existing user base. OSQA's (or its predecessor's) decision to inherit from The
I'm thinking about modifying the
Are there any unwanted side-effects to be expected from this? What solutions have others come up with to integrate OSQA with an existing user base? |
|
If you trust the users in the existing user base, then it is a perfect solution. We'll use OSQA as an internal support forum and only employees have access. Trust is not an issue :-) thanks!
(31 Oct '10, 11:47)
piquadrat
|
|
Well, that didn't work so good. This solution has all kind of nasty side-effects, like the LDAP authentication backend creating new users all the time instead of authenticating existing ones... I don't want to appear dickish as a new user, but there's a reason that several Django core devs are on record advising against inheriting from /edit: I think I managed to hack my way around this problem:
Although all that is true, there's a reason for us to do that. We inherited code that was monkeypatching the User model (even worst), and this was the easy workaround without huge refactorings, cause there was already several active OSQA sites. And your LDAp problem has nothing to do with it. If you browse around this site a bit, you'll see several threads explaining the easiest way to create authentication backends and connecting existing user bases with OSQA, without duplicating users. piquadrat thing is a bit different, and he'll hardly have that duplicated users problem.
(31 Oct '10, 20:52)
Hernani Cerq... ♦♦
my LDAP problem was a symptom of my incorrect code from the original post: I understand that OSQA inherited this problem from CNProg. But that doesn't change the fact that inheriting from
(01 Nov '10, 02:47)
piquadrat
Can you give an example of such "worms"?
(01 Nov '10, 08:20)
Hernani Cerq... ♦♦
It's simply common practice to use something akin to a profile model to persist custom data that relates to the
(01 Nov '10, 09:42)
piquadrat
(continues in the next comment)
(01 Nov '10, 11:56)
Hernani Cerq... ♦♦
Bottom line, these kind of "recommendations" are cool, but they are also meant to be broken sometimes, don't follow them dogmatically or you will catch yourself stuck sometimes.
(01 Nov '10, 11:57)
Hernani Cerq... ♦♦
Well, Hernâni - what is your recommendation then to the original question? What is the best way to integrate with existing users?
(02 Nov '10, 10:14)
Snaky Love
Its specific to each problem. I don't even have a clue of what are you trying to accomplish here.
(02 Nov '10, 10:20)
Hernani Cerq... ♦♦
I'd be curious too,cause we're interested in rolling out OSQA to an existing user base. Do you guys have any tips or advice on the best way to proceed ? Our current set-up does not extend User but has a FK to User and set as AUTH_PROFILE_MODULE
(11 May '11, 06:48)
philgo20
showing 5 of 9
show 4 more comments
|