我试图安装Saleor,但在./manage.py迁移我得到
我制作了superuser,但它不起作用。
追踪(最近一次通话):文件"./manage.py",第10行,位于execute_from_command_line(sys.argv)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/core/management/init.py",第381行,在execute_from_command_line中utility.execute()文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/core/management/init.py",第375行,执行中self.fetch_command(子命令).run_from_argv(self.argv)run_from_argv中的文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/core/management/base.py",第316行self.execute(*args,**cmd_options)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/core/management/base.py",第353行,执行中output=self.handle(*参数,**选项)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/core/management/base.py",第83行,包装res=handle_func(*args,**kwargs)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/core/management/commargent.py",第203行,句柄中fake_ initial=fake_,migrate中的文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/migrations/executor.py",第117行state=自我_migrate_all_forwards(state,plan,full_plan,fake=fake,fake_initial=fake_ininitial)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/migrations/executor.py",第147行,在_migrate_all_forwards中state=self.apply_migration(state,migration,fake=fake,fake_initial=fake_ininitial)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/migrations/executor.py",第244行,在apply_migration中state=migration.apply(state,schema_editor)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/migrations/migration.py",第124行,在apply中operation.database_forwards(self.app_label、schema_editor、old_state、project_state)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/contrib/postgres/operations.py",第19行,在database_forwards中schema_editor.execute("CREATE EXTENSION IF NOT EXISTS%s"%schema_editer.quote_name(self.name))文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/backends/base/schema.py",第133行,执行中cursor.execute(sql,params)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/backends/utils.py",第100行,执行中return super().execute(sql,params)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/backends/utils.py",第68行,执行中回归自我_execute_with_wrappers(sql,params,many=False,executor=self.execute)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/backends/utils.py",第77行,位于_execute_with_wrappers中返回执行器(sql、params、many、context)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/backends/utils.py",第85行,在_execute中return self.cursor.execute(sql,params)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/utils.py",第89行,在退出中从exc_value提升dj_exc_value.with_traceback(traceback)文件"/home/honza/projects/saleor/venu/lib/python3.6/site packages/django/db/backends/utils.py",第85行,在_execute中return self.cursor.execute(sql,params)django.db.utils.ProgrammingError:创建扩展插件"hstore"的权限被拒绝提示:必须是超级用户才能创建此扩展。
solutin is>sudo-i-u postgres;带超级用户的ALTER USER saleor_USER