SiteProfileNotAvailable错误 [英] SiteProfileNotAvailable error
问题描述
我的目录结构与问题有关:
- 项目(文件夹)
- 个人资料(文件夹)
- models.py(file)
- settings.py(file)
- 个人资料(文件夹)
我有文件夹个人资料
其中 models.py
,我有class Profile
。
在 settings.py
我已经将个人资料
文件夹包含在我的应用程序中,我已经设置了 AUTH_PROFILE_MODULE ='profiles.Profile'
。
在配置文件类中,我已经添加了应用程序的路径:
class Profile(UserenaLanguageBaseProfile):
class Meta:
app_label ='profiles'
任何人都可以帮我找出这个问题?
我正在使用 Django 1.4 trunck
版本,再次升级包后,该问题已解决。
I know same question being asked many times. I have successfully setup all things. I didn't get this error when i run this on localhost. But when i run the site on deployment server i got this error not always but very often. When i refresh page 3 or 4 times the error disappears but keeps on coming again and again which is very annoying.
My directory structure related to problem is as:
- project (folder)
- profiles (folder)
- models.py (file)
- settings.py (file)
- profiles (folder)
I have folder profiles
in which there is models.py
and i have class Profile
there.
In settings.py
i have included profiles
folder to my apps also and i have set AUTH_PROFILE_MODULE = 'profiles.Profile'
.
Also in Profile class i have added the path for application:
class Profile(UserenaLanguageBaseProfile):
class Meta:
app_label = 'profiles'
Can any one help me to figure out this issue??
I was using Django 1.4 trunck
version, after upgrading the package again that problem is fixed.
这篇关于SiteProfileNotAvailable错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!