an elearning website with recommender system.
http://127.0.0.1:8000/ test account: yiliang / abcd1234@
http://127.0.0.1:8000/admin/ test account: admin/test1234@
http://ec2-13-239-55-207.ap-southeast-2.compute.amazonaws.com/ test account: yiliang / abcd1234@
http://ec2-13-239-55-207.ap-southeast-2.compute.amazonaws.com/admin test account: admin / test1234@
- list page of courses
- detail page of course
- info page of staff
- info page of student
- course progress of student
- course recommendation for student
- Save dependancies to a file
pip freeze > requirement_file.txt
- Install all dependancies in the file
pip install -r requirement_file.txt
- List of major dependencies
pip install django
pip install pandas
pip install python-rake
pip install scikit-learn
pip install psycopg2
pip install django-crispy-forms
pip install pylint-django
Link
pip install rake_nltk
django startproject elearning
- course component
python -m django startapp course
- users component
python -m django startapp users
python manage.py runserver
- debug: true => will reload automatically
- should add app into project's setting.py firstly
- update modules.py
- migrate models using commands as below
python manage.py makemigrations
python manage.py migrate
python manage.py migrate
python manage.py createsuperuser
- install
python -m pip install psycopg2
- migration
python manage.py migrate
- create admin superuser
- create relevant models
python manage.py makemigrations --name inital_data --empty course
- add load_data_from_sql
python manage.py migrate course
- Use the given SQL script to populate models and data Linked to solution
- connect to the database
python manage.py inspectdb > models.py