HKU ICMS Intelligent Course Management System
- Install
pipenv
usingpip
:pip install pipenv
- Activate the virtual environment:
pipenv shell
- Install the packages needed:
pipenv install
Prepare your own empty MySQL database, then:
- Go to
settings.py
undericms/
- Ctrl-F search
DATABASES
- Modify
NAME
(i.e. your database name),USER
,PASSWORD
,HOST
, andPORT
to your own settings
If the project failed to run due to missing /usr/local/lib/libmysqlclient.21.dylib
,
-
Make sure you have MySQL installed at
/usr/local/mysql/
-
Make a symbolic link for that missing file to the one in the MySQL folder by
ln -s /usr/local/mysql/lib/libmysqlclient.21.dylib /usr/local/lib/libmysqlclient.21.dylib
Run python manage.py createsuperuser
to create an admin account
- Open
icms/settings.py
- Edit
EMAIL_HOST
,EMAIL_HOST_USER
, andEMAIL_HOST_PASSWORD
- Go to the admin page
[hostname]/admin
- Go to Users and add a new user (email address)
-
Go to
face_recognition/
and runpython face_capture.py -u [EMAIL_ADDRESS] -n [NUMBER_OF_IMAGES]
-
Train the model:
python train.py
- Make migrations (if there are any changes to the database schemas):
python manage.py makemigrations
- Apply migrations (if there are any):
python manage.py migrate
- Run the server:
python manage.py runserver