如何使 postgres 在 virtualenv 中与 django 一起工作?
错误:
- 正在创建新角色,但我在 pg_hba.conf 中看不到它们
CMD:
createdb -U postgres -T template_postgis fixmystreet
在 virtualenv 内部和 root 上都给出错误:Error : createdb: could not connect to database postgres: FATAL: Peer authentication failed for user "postgres"
仅供参考:我对 django 和 postgres 都是新手,所以我正在做https://github.com/visiblegovernment/django-fixmystreet/wiki/Installation来熟悉它们。任何帮助表示赞赏。