相关疑难解决方法(0)

Django:关系"django_site"不存在

我在aws上运行测试django服务器,我刚刚安装了django-userena,当我尝试在点击提交时注册用户时,我收到以下消息:

关系"django_site"不存在第1行:..."django_site"."domain","django_site"."name"FROM"django_si ...

我不确定这里出了什么问题.我做了一些研究并添加" 'django.contrib.sites',"到我安装的应用程序中,但我仍然收到错误.我将失去一个额外的步骤.有什么建议或意见吗?

python django

20
推荐指数
3
解决办法
2万
查看次数

在manage.py测试期间"django.db.utils.ProgrammingError:relation"app_user"不存在"

我的设置:

  • Django 1.8.3
  • Python 2.7.10
  • Ubuntu 14.04
  • Django的双因子身份验证== 1.2.0

运行时出现以下错误python manage.py test:

Traceback (most recent call last):
  File "/src/venv/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/src/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/src/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/src/venv/lib/python2.7/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "/src/venv/lib/python2.7/site-packages/django/core/management/base.py", line 393, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/src/venv/lib/python2.7/site-packages/django/core/management/commands/test.py", line 74, in execute
    super(Command, self).execute(*args, **options)
  File "/src/venv/lib/python2.7/site-packages/django/core/management/base.py", line 444, in execute
    output = self.handle(*args, **options)
  File "/src/venv/lib/python2.7/site-packages/django/core/management/commands/test.py", line 90, in …
Run Code Online (Sandbox Code Playgroud)

python django postgresql django-models

9
推荐指数
3
解决办法
6016
查看次数

Django/Postgres迁移失败"django.db.utils.ProgrammingError:relation"django_site"不存在"

有问题迁移Django 1.8.1项目

Operations to perform:
  Synchronize unmigrated apps: raven_contrib_django, staticfiles, found_dash, messages, allauth, humanize
  Apply all migrations: account, found_auth, sessions, admin, sites, auth, found_assets, contenttypes
Synchronizing apps without migrations:
  Creating tables...
    Creating table allauth_socialapp
    Creating table allauth_socialaccount
    Creating table allauth_socialtoken
    Running deferred SQL...
Raven is not configured (logging is disabled). Please see the documentation for more information.
Traceback (most recent call last):
  File "src/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/found/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/found/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, …
Run Code Online (Sandbox Code Playgroud)

django postgresql

8
推荐指数
1
解决办法
2787
查看次数

标签 统计

django ×3

postgresql ×2

python ×2

django-models ×1