django-multiple-user-types-example icon indicating copy to clipboard operation
django-multiple-user-types-example copied to clipboard

I deployed the app locally and tried to signup a student I got below error

Open hafs-r opened this issue 4 years ago • 10 comments

Exception Type:	OperationalError
Exception Value:	
no such table: main.classroom_student__old

hafs-r avatar Jul 17 '20 10:07 hafs-r

The issue was related to subject data in database, it is working fine when I cleaned existing data and migrated everything as fresh.

hafs-r avatar Jul 17 '20 16:07 hafs-r

closing as it is solved

hafs-r avatar Jul 20 '20 17:07 hafs-r

how was it fixed ,

MAHANTH-wq avatar Jul 31 '20 16:07 MAHANTH-wq

how was it fixed ,

Change the Django version in requirements.txt file to Django==2.2.7 Install them and follow the steps as mentioned in the repo.

warisanwar avatar Jul 31 '20 17:07 warisanwar

how was it fixed ,

Change the Django version in requirements.txt file to Django==2.2.7. Install them and follow the steps as mentioned in the repo.

Screenshot (10) It's showing an error

MAHANTH-wq avatar Aug 01 '20 09:08 MAHANTH-wq

Sorry, I guess the error is because of the full-stop at the end of 2.2.7 , just keep it Django==2.2.7 And it'll work probably.

warisanwar avatar Aug 01 '20 16:08 warisanwar

Sorry, I guess the error is because of the full-stop at the end of 2.2.7 , just keep it Django==2.2.7 And it'll work probably.

Screenshot (11) ya i have installed it successfully ...but when i tried to sign up as a student it is showing the following Screenshot (12) operational error

MAHANTH-wq avatar Aug 01 '20 17:08 MAHANTH-wq

The issue was related to subject data in database, it is working fine when I cleaned existing data and migrated everything as fresh.

Can u elaborate how to do it..

MAHANTH-wq avatar Aug 01 '20 17:08 MAHANTH-wq

For those still having this error, Here is what I did

  • Changed the Django version number to 2.2.7 in requirements.txt ( This step isnt necessary I think)
  • Remove db.sqlite file from django folder
  • Run 'python manage.py migrate'
  • Start server and Create a Student account first, then create a teacher account, order is important.

Cheers

lucyd42 avatar Aug 10 '20 16:08 lucyd42

When I executed this project I got this error too. And, solutions in here didn't work. If this issue is still open, I would like to work on the issue.

BasakUlker avatar Aug 12 '21 13:08 BasakUlker