schoolquiz proctoringAPI
Brought to you by:
neosurya
File | Date | Author | Commit |
---|---|---|---|
install_files | 2019-09-25 |
![]() |
[749db1] Modified install files. |
proctoring_api | 2019-09-25 |
![]() |
[d52331] Updated settings.py |
proctoring_rest_service | 2019-09-17 |
![]() |
[66598f] Updated proctoring API install instructions. |
.gitignore | 2019-09-25 |
![]() |
[edaef8] Modified settings.py to auto-generate a secret_key |
Readme.txt | 2019-08-22 |
![]() |
[67b82a] Added requirements |
db.sqlite3 | 2019-08-05 |
![]() |
[c07b42] Initial commit |
manage.py | 2019-08-13 |
![]() |
[3849d4] Review on Aug 13 2019 |
This uses mongoDB, Django and python 3.6.8 virtual environment. Starting on local host: python manage.py runserver If you goto http://127.0.0.1:8000/api/gaze You will see gaze detection. We need to figure out: a) Run Django via apache2. b) How to run the application on remote location using https:// python manage.py runserver 0.0.0.0:8000 Superuser: admin adminpass python manage.py runserver_plus --cert-file /home/kompalli/tapi.fasl.org.in/cert1.pem 0.0.0.0:8000 python manage.py runserver_plus --cert-file /etc/letsencrypt/archive/tapi.fasl.org.in/cert1.pem 0.0.0.0:8000 https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04 Method 0: sudo nano /etc/apache2/conf-available/mod-wsgi.conf WSGIScriptAlias /api /var/www/html/api/p/proctoring_api/wsgi.py Method 1: sudo nano /etc/apache2/sites-available/000-default.conf Alias /static /var/www/html/api/p/proctoring_rest_service/static/ <Directory /var/www/html/api/p/proctoring_rest_service/static/> Require all granted </Directory> <Directory /var/www/html/api/p/proctoring_api/> <Files wsgi.py> Require all granted </Files> </Directory> WSGIDaemonProcess ProctoringAPI python-path=/var/www/html/api/p/proctoring_api/ python-home=/var/www/html/api/venv/ WSGIProcessGroup ProctoringAPI WSGIScriptAlias /tapi /var/www/html/api/p/proctoring_api/wsgi.py Method 2: WSGIScriptAlias /tapi /var/www/html/api/p/proctoring_api/wsgi.py WSGIPythonPath /var/www/html/api/p/proctoring_api/:/var/www/html/api/venv/lib/python3.5/site-packages/ <Directory /var/www/html/api/p/proctoring_api/> <Files wsgi.py> Order deny,allow Require all granted </Files> </Directory> Alias /static /var/www/html/api/p/proctoring_rest_service/static/ <Directory /var/www/html/api/p/proctoring_rest_service/static/> Require all granted </Directory>