sudo -u postgres createuser -SDRP booktype-user
sudo -u postgres createdb -E utf8 -O booktype-user booktype-db
restarted postgresql
I'm installing Booktype
all is good, but when I'm trying to access to the website I have this error :
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator at
__INSERT_ADMIN_EMAIL__ to inform them of the time this error occurred,
and the actions you performed just before this error.
More information about this error may be available
in the server error log.
and this into the var/log/apache :
[Sat Mar 21 19:58:43.003215 2015] [:error] [pid 7573] [client :54629] File "/var/lib/booktype/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 839, in execute_sql
[Sat Mar 21 19:58:43.003230 2015] [:error] [pid 7573] [client :54629] cursor = self.connection.cursor()
[Sat Mar 21 19:58:43.003246 2015] [:error] [pid 7573] [client :54629] File "/var/lib/booktype/lib/python2.7/site-packages/django/db/backends/__init__.py", line 326, in cursor
[Sat Mar 21 19:58:43.003256 2015] [:error] [pid 7573] [client xx.xx.xx.xx:54629] cursor = util.CursorWrapper(self._cursor(), self)
[Sat Mar 21 19:58:43.003262 2015] [:error] [pid 7573]] File "/var/lib/booktype/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 182, in _cursor
[Sat Mar 21 19:58:43.003281 2015] [:error] [pid 7573] self.connection = Database.connect(**conn_params)
[Sat Mar 21 19:58:43.003287 2015] [:error] [pid 7573] File "/var/lib/booktype/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
[Sat Mar 21 19:58:43.003296 2015] [:error] [pid 7573]] conn = _connect(dsn, connection_factory=connection_factory, async=async)
[Sat Mar 21 19:58:43.003309 2015] [:error] [pid 7573] OperationalError: fe_sendauth: no password supplied
Any ideas ?
DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'testdb',
'USER': 'testuser',
'PASSWORD': 'testpwd',
'HOST': 'localhost',
'PORT': ''
}
}
Aco
It looks like you're new here. If you want to get involved, click one of these buttons!