I'm trying to setup the Wiki Engine Configuration on the file wikiconfig.py to be able to use postgresql instead of the default filesystem (fs store) but I can't make it work, I've done all the imports (flask_sqlalchemy and sqlalchemy),edited the URI as written in the guide https://buildmedia.readthedocs.org/media/pdf/moin-20/latest/moin-20.pdf and changed the name of the database I want to use, the name and the password of the chosen user but every time I start the server and try to log on the platform I get an internal server error. Any ideas on what could cause this problem?
The command I used was:
stores:sqla:postgres://myuser:mypassword@localhost/mywiki_%(nsname)s::%(kind)s
The error I get:
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: databas "dbname_default" does not exist
I even tried to create a new database inside postgresql with the same name of the one in the error log but the problem stays the same.