-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
668 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"head": "yúda", | ||
"linguistInfo": { | ||
"inflectional_category": "VT-Y", | ||
"pos": "V", | ||
"stem": "yúda", | ||
"wordclass": "VT-Y" | ||
}, | ||
"paradigm": "VT-Y", | ||
"senses": [ | ||
{ | ||
"definition": "to eat something", | ||
"sources": ["EXAMPLE"] | ||
} | ||
], | ||
"slug": "yúda" | ||
} | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
""" | ||
Django settings for stoeng. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/3.2/topics/settings/ | ||
For the full list of settings and their values, see | ||
https://docs.djangoproject.com/en/3.2/ref/settings/ | ||
""" | ||
|
||
from pathlib import Path | ||
|
||
from morphodict.site import base_dir_setup | ||
|
||
BASE_DIR = Path(__file__).resolve().parent.parent | ||
|
||
base_dir_setup.set_base_dir(BASE_DIR) | ||
|
||
from morphodict.site.settings import * | ||
|
||
# Where this application should be deployed: | ||
PRODUCTION_HOST = "stoeng.altlab.dev" | ||
|
||
ALLOWED_HOSTS.append(PRODUCTION_HOST) | ||
|
||
DEFAULT_RUNSERVER_PORT = 8018 | ||
|
||
INSTALLED_APPS.insert(0, "stoeng.app") | ||
|
||
# Morphodict configuration | ||
|
||
# The ISO 639-1 code is used in the lang="" attributes in HTML. | ||
MORPHODICT_ISO_639_1_CODE = "sto" | ||
|
||
MORPHODICT_SOURCE_LANGUAGE = "sto" | ||
MORPHODICT_TARGET_LANGUAGE = "eng" | ||
|
||
MORPHODICT_ORTHOGRAPHY = { | ||
"default": "Latn", | ||
"available": { | ||
"Latn": {"name": "Latin"}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Command-line utility for administrative tasks. | ||
""" | ||
|
||
import os | ||
import sys | ||
from pathlib import Path | ||
|
||
# sys.path[0] is initialized to the directory containing the script, which | ||
# isn’t right for our purposes. | ||
sys.path[0] = os.fspath(Path(sys.path[0]) / "src") | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "stoeng.site.settings") | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) |