ciur / papermerge

Open Source Document Management System for Digital Archives (Scanned Documents)
https://papermerge.com
Apache License 2.0
2.55k stars 267 forks source link

fresh manual install seemingly does not read papermerge.conf.py #406

Open borisneubert opened 3 years ago

borisneubert commented 3 years ago

Description I manually installed Papermerge with Apache as webserver. Papermerge runs. I changed papermerge.conf.py as follows:

DBDIR = "/data/DMS/papermerge/db/"
MEDIA_DIR = "/data/DMS/papermerge/media"
IMPORTER_DIR = "/data/DMS/import"
LANGUAGE_CODE = "de-DE"
#LANGUAGE_FROM_AGENT = True
STATIC_DIR = "/data/DMS/papermerge/static/"

The SQLite3 database is created in the right location but accessing Papermerge via the Web GUI throws an operational exception because the database was not found. Somewhere down the error page still the default location is mentioned:

DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/opt/papermerge/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} Also Papermerge still looks in the project root directory for the media directory. And the Web GUI is not in German language. Copying papermerge.conf.py to /etc did not help either.

I worked around the missing db.sqlite3 file and media directory by using symbolic links for the time being.

Expected The values from papermerge.conf.py are used.

Info: