LwimiLinks
This project implements a platform for hosting multilingual terminology, and enriching data with metadata and links between relevant role players.
"Lwimi" refers to language in the Nguni languages, and "Links" emphasises the goal of linking relevant pieces of information.
The software is implemented in Python on the Django framework.
- Docker
- Docker-compose
- Makefile reader installed on device
- docker-compose up --build
- docker-compose down
.env file
SECRET_KEY=''
To generate a new secret key, you can use the following command:
- python3 manage.py shell
- from django.core.management.utils import get_random_secret_key
- print(get_random_secret_key())
- Clone the repository
- Run
make build
to build the docker image - Run
make up
to run the docker container - Run
make stop
to stop the docker container
.env file
- EMAIL_HOST='sandbo x.smtp.mailtrap.io'
- EMAIL_HOST_USER='*********'
- EMAIL_HOST_PASSWORD='******'
- EMAIL_PORT='2525'
- EMAIL_BACKEND_CONSOLE=True
By default, the email backend is set to console, so you can see the email in the console. To send an email, you need to set the EMAIL_BACKEND_CONSOLE to False.
please use .env.example as example
Docker Volumes for production:
- /media
- /logging
- /pdf_uploads
- /pdf_upload_completed
.env file
- EMAIL_BACKEND_CONSOLE=False
- When setting up the app (from scratch or from a wipe), the following commands should be run:
- (Optional)
make build
make up
- wait for the database to start, then hit Control-Cmake migrate
make up
- runs the app
- (Optional)
- To wipe the database, use
make down
- The Django admin interface is at
/admin/
- An admin user can be created through
make create-super-user
- An admin user can be created through
- To run a single module of tests, you can pass the Makefile
module
variable on the command line. For instance, to run only tests defined intest_document_admin.py
, runmake test module=general.tests.test_document_admin