avuletica / eLearning

eLearning is scalable web application written in python (django)
GNU Lesser General Public License v2.1
108 stars 62 forks source link

Help Wanted on professors profile #10

Closed frchnrzm closed 1 year ago

frchnrzm commented 5 years ago

hello, i have a problem on professor profile, at the chapter name i can not be clicked, the message is DoesNotExist at /courses/professor/Course object/test1/ Chapter matching query does not exist.

ivaniclixx commented 3 years ago

The same happened to me. The "Course object" gave me the hint: the system is not getting the name of the course when using the object directly. So I checked the models.py file and found out the problem: the code is using the old "def unicode" method (Python 2) and I am using Python 3. The fix is easy: edit models.py and replace "def unicode" with "def str", and It will work.

avuletica commented 1 year ago

I see plenty of people having issues using the newer Python version, please refer to:

https://github.com/avuletica/eLearning#compatibility