-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I fix SiteProfileNotAvailable exception #88
Comments
Try setting AUTH_PROFILE_MODULE to 'auth.User', which is the default Django user model. Let me know if that addresses the issue. If so, I'll update the README accordingly, it appears to be a requirement for the comment module to function properly. |
Many thanks for your worth full answer. I have applied the value as you have mention (on settings.py file), But still I am getting same exception. This exception occur when I going to,
Note:- But I can proceed other operations without any issue, ex: post new "Idea" and do "Like" it . I have remove the "projectegg = idea" entry on buildout.cfg file because it course to Other than that I have proceeded only basic configuration steps that mention on read me file. I have posted detail exception message and relevant trace values as bellow, Can you please help me to resolve this issue. Thanks a lot. ----------- Exception detail ----------------- Request Method: GET ----------- Trace values ----------------- ▼ Local vars |
Okay, so I was able to recreate the comment issue. It looks like the code here is not able to run get_profile using the auth.User model. The erroring line in auth.User is here. I don't currently have time to dig into a proper fix, but perhaps the easiest solution is to create a template tag to safely run and catch get_profile and return None if |
Also, note this doesn't impact CFPB's system because we run ideabox inside of collab, and the CollabUser/Person combo resolves get_profile() without any issues. |
I am getting the following: Is this because it should be username instead of user? |
I have I configured and deploy the application. But when I going to read some comment I will get following exception,
Exception Type: SiteProfileNotAvailable
Exception Value: You need to set AUTH_PROFILE_MODULE in your project settings
But I haven't any idea to how too set proper value for "AUTH_PROFILE_MODULE" (under src\collab\collab\settings.py).
Now I am using following values,
application name is 'idea'
I have created user call 'dev'
AUTH_PROFILE_MODULE = 'idea.dev'
Can you please tell me how can I derive that values ?
Thanks.
The text was updated successfully, but these errors were encountered: