SiteProfileNotAvailable错误 [英] SiteProfileNotAvailable error

查看:78
本文介绍了SiteProfileNotAvailable错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道同样的问题被多次询问。我已经成功地设置了所有的东西。当我在本地主机上运行时,我没有收到此错误。但是当我在部署服务器上运行该站点时,我得到这个错误并不总是但经常。当我刷新页面3或4次时,错误消失,但是一次又一次地进入,这是非常讨厌的。



我的目录结构与问题有关:



  • 项目(文件夹)

    • 个人资料(文件夹)

      • 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)

      I have folder profilesin 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆