If you follow along in this document and still have trouble, please open an issue on GitHub: so I can fill in the gaps.
Within extracted directory copy
/etc/papermerge.conf.pyand open it in editor. Set values for:
IMPORTER_DIR: this is local filesystem directory from where your documents will be imported
DB_DIR: this is local directory where sqlite database file will be stored
MEDIA_DIR: this is where all your document files will be saved
STATIC_DIR: this is where all static files will be collected by
Create and activate python virtual environment with:
$ python -m venv .venv $ source .venv/bin/activate
Install dependencies in requirements.txt:
$ pip install -r requirements.txt
Initialize SQLite database with:
$ ./manage.py migrate
Collect static files for webserver with:
$ ./manage.py collectstatic
Create user for Papermerge instance:
$ ./manage.py createsuperuser
Start webserver with:
$ ./manage runserver <IP>:<PORT>
If no specific IP or port is given, the default is 127.0.0.1:8000 also known as http://localhost:8000/. At this step, must be able to access login screen and it should look like in screenshot below. You can login with the user/pass you created in #6.
Also, you can upload some document and see their preview.
But because there is no worker running yet, documents are basically plain images.
- In a separate window, change to the project’s root directory again, but this time, you should start the worker script with ./manage.py worker.
- Scan something or put a file into the IMPORTER_DIR.
- Wait a few minutes
- Now you should be able to select text in OCRed document!