Domjudge 線上程式評分系統輔助工具 網頁版
- 帳號管理
- 題庫管理
- 題目打包(.zip)
- 線上網頁服務
- Git for Windows(Git Bash)
- Python 3.8
$ python -m pip install -U pipenv
- Git
- Python 3.8
https://hackmd.io/@biz-pg/domjudge-tool-web
Windows open Git Bash
Mac OS/Linux open terminal
$ git clone https://github.com/ntub/domjudge-tool-web.git
$ cd domjudge-tool-web
$ pipenv install --dev
# Create new python venv and install python packages
# for Windows
$ python -m pipenv install --dev
$ pipenv shell
# active virtualenv
# for Windows
$ python -m pipenv shell
$ cp src/core/.env.example src/core/.env
$ vi src/core/.env
#SECRET_KEY=key-here
#DEBUG=on
#ALLOWED_HOSTS=*,
#DATABASE_URL=sqlite:///sqlite.db
#DJANGO_SUPERUSER_USERNAME=admin
#DJANGO_SUPERUSER_PASSWORD=admin-password
(venv)$ cd src
(venv)$ python manage.py migrate
# init local database and create db tables
(venv)$ python manage.py loaddata -i ./fixtures/groups.json
# loading init db data
(venv)$ python manage.py createsuperuser
# 使用者名稱: admin
# 電子信箱: superuser@mail.com
# Password: ***************
# Password (again): ***************
# Bypass password validation and create user anyway? [y/N]: y
# Superuser created successfully.
Run Server
(venv)$ cd src
(venv)$ python manage.py runserver
# Control + C can exit
(venv)$ winpty python manage.py runserver
# for Windows git bash
- Open http://localhost:8000/admin/ from browser
- Login your superuser account
- 匯入帳號功能