From 78ab7b752a288024be7140227b60b12af853611d Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Wed, 21 Dec 2022 11:48:00 +0700 Subject: [PATCH 1/2] Update README.md Small typo, the source file is ./make_style.sh, not ./make_style --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d5a159..1d6e513 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Most of the steps are similar to Django tutorials. Here are two usual steps: 2. Update styles (using SASS) - Change .css/.scss files in `resources` folder - - ```./make_style && python manage.py collectstatic``` + - ```./make_style.sh && python manage.py collectstatic``` - Sometimes you need to `Ctrl + F5` to see the new user interface in browser. ## Screenshots From 0c8319c138bce6371c097e226ca0a1d4613af59c Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Wed, 21 Dec 2022 11:53:32 +0700 Subject: [PATCH 2/2] Update README.md The version for Python is Python3, as stated in the beginning of the README.md [![OS](https://img.shields.io/badge/Ubuntu-16.04%20%7C%2018.04%20%7C%2020.04-brightgreen)] Some users may not have python-is-python3 set up on their server, so python3 is a better approach here. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1d6e513..05c871e 100644 --- a/README.md +++ b/README.md @@ -53,12 +53,12 @@ source dmojsite/bin/activate 2. Run server: ```bash -python manage.py runserver 0.0.0.0:8000 +python3 manage.py runserver 0.0.0.0:8000 ``` 3. Create a bridge (this is opened in a different terminal with the second step if you are using the same machine) ```bash -python manage.py runbridged +python3 manage.py runbridged ``` 4. Create a judge (another terminal) @@ -83,15 +83,15 @@ node websocket/daemon.js Most of the steps are similar to Django tutorials. Here are two usual steps: 1. Update vietnamese translation: - - If you add any new phrases in the code, ```python manage.py makemessages``` + - If you add any new phrases in the code, ```python3 manage.py makemessages``` - go to `locale/vi` - modify `.po` file - - ```python manage.py compilemessages``` - - ```python manage.py compilejsi18n``` + - ```python3 manage.py compilemessages``` + - ```python3 manage.py compilejsi18n``` 2. Update styles (using SASS) - Change .css/.scss files in `resources` folder - - ```./make_style.sh && python manage.py collectstatic``` + - ```./make_style.sh && python3 manage.py collectstatic``` - Sometimes you need to `Ctrl + F5` to see the new user interface in browser. ## Screenshots