You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
3.0 KiB

4 years ago
4 years ago
4 years ago
  1. # FAQ
  2. ## I can't upload my data
  3. Please check the following list.
  4. - File encoding: `UTF-8` is appropriate.
  5. - Filename: alphabetic file name is suitable.
  6. - File format selection: File format radio button should be selected properly.
  7. - When you are using JSON/JSONL: Confirm JSON data is valid.
  8. - You can use [JSONLint](https://jsonlint.com/) or some other tool (when JSONL, pick one data and check it).
  9. - When you are using CSV: Confirm CSV data is valid.
  10. - You can use Excel or some tools that have import CSV feature.
  11. - Lack of line: Data file should not contain blank line.
  12. - Lack of field: Data file should not contain blank field.
  13. **You don't need your real & all data to validate file format. The picked data & masked data is suitable if your data is large or secret.**
  14. ## I want to add annotators annotators/annotation approvers
  15. 1. Login to [Django Admin](https://djangobook.com/django-admin-site/) (URL: `/admin`).
  16. 2. Add a user to `Users` table (`Add` link).
  17. 3. **Logout from Django Admin site.** [You'll face login error without logout of Django Admin site](https://github.com/doccano/doccano/issues/723).
  18. 4. Add the user to the project in the member page (`/projects/{project_id}/members`).
  19. ## I want to change user's or admin's password
  20. For ordinary user:
  21. 1. Login to [Django Admin](https://djangobook.com/django-admin-site/) (URL: `/admin`).
  22. 2. Open `Users` table.
  23. 3. Open user you want to change password.
  24. 4. In `Password` property, you'll see: `Raw passwords are not stored, so there is no way to see this user's password, but you can change the password using *this form*.` Click `this form` link.
  25. 5. Fill the form. Click `CHANGE PASSWORD` button.
  26. 6. **Logout from Django Admin site.** [You'll face login error without logout of Django Admin site](https://github.com/doccano/doccano/issues/723).
  27. For the superuser account credentials, you have to set new password in the `docker-compose.dev.yml` and `docker-compose.prod.yml` files:
  28. ```yml
  29. ADMIN_PASSWORD: "new_password"
  30. ```
  31. ## I want to change port number
  32. On production, edit `docker-compose.prod.yml` file: change `80:80` substring in `nginx`/`ports` section to `<your_port>:80`.
  33. On development, edit `docker-compose.dev.yml` file: change `8000:8000` substring in `backend`/`ports` section to `<your_port>:8000`.
  34. ## I want to update to the latest doccano image
  35. 1. Execute `git pull` to reflect the latest doccano.
  36. 2. Delete the volume that `doccano_node_modules`, `doccano_static_volume`, `doccano_venv` and `doccano_www`.
  37. **Do not delete `doccano_postgres_data` because it stores your projects data.**
  38. 3. Rebuild the doccano image.
  39. The following commands are the procedure for 2~3.
  40. ```
  41. ❯ docker volume ls
  42. DRIVER VOLUME NAME
  43. local doccano_node_modules
  44. local doccano_postgres_data
  45. local doccano_static_volume
  46. local doccano_venv
  47. local doccano_www
  48. ❯ docker volume rm doccano_node_modules doccano_static_volume doccano_venv doccano_www
  49. ❯ docker-compose -f docker-compose.prod.yml build --no-cache
  50. ```