Skip to content

Django app for archiving and searching translations and glossaries

Notifications You must be signed in to change notification settings

4ka0/honyaku_archive

Repository files navigation

Honyaku Archive

A webapp for archiving and searching translations and glossaries.

You can do the following:

  • Search the content of glossaries and translations.
  • Upload, create, edit, and delete glossaries (upload format: .txt files).
  • Upload, edit, and delete translations (upload format: .tmx and .docx files).

Built using:

  • Python 3.10
  • Django 4.1.3
  • Bootstrap 5

Screenshots

Home page:



Glossary detail page:



Translation detail page:



Search results:



Search options:



Add glossary entry form:



Upload glossary form:



Upload translation form:



To download and run

  1. Clone this repo into a location of your choosing.
    git clone https://github.com/4ka0/honyaku_archive.git

  2. Move into the project folder.
    cd honyaku_archive

  3. Create and activate a virtual environment.
    (Example using venv:)
    python3 -m venv venv
    source venv/bin/activate

  4. Update pip (package manager).
    python -m pip install --upgrade pip

  5. Install the dependencies.
    python -m pip install -r requirements.txt

Environment variables are intentionally separated from the codebase.
Therefore, in the root directory of the project, create a file called .env.
In the .env file, write the following lines (defining the necessary environment variables).

export DEBUG=True
export ALLOWED_HOSTS=127.0.0.1
export DATABASE_URL=sqlite:///db.sqlite3
export SECRET_KEY=

For the SECRET_KEY value, after the equals sign and without a space, add a sequence of characters that is:

  • a minimum of 50 characters in length, and
  • contains a minimum of 5 unique characters.

(Or simply use this site to generate one => https://djecrety.ir)

  1. Set up the database.
    python manage.py migrate

  2. Create a user.
    python manage.py createsuperuser

  3. Run the local server.
    python manage.py runserver

  4. Access 127.0.0.1:8000 in your browser.

  5. Log in using the same user credentials that you just created in step 7, and start adding glossaries and translations.