我在aws上运行测试django服务器,我刚刚安装了django-userena,当我尝试在点击提交时注册用户时,我收到以下消息:
关系"django_site"不存在第1行:..."django_site"."domain","django_site"."name"FROM"django_si ...
我不确定这里出了什么问题.我做了一些研究并添加" 'django.contrib.sites',"到我安装的应用程序中,但我仍然收到错误.我将失去一个额外的步骤.有什么建议或意见吗?
我的设置:
运行时出现以下错误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) 有问题迁移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)