Open tillmo opened 4 years ago
The error occurs after sign up. However, the sign up is successful, and afterwards one can log in without problems. What does not work any longer is the automatic login after sign up. (Moreover, uses leave the website due to the network error and do not try to log in.)
The first answer here solved the problem. However, this kind of monkey-patching is unfortunate.
The first answer here solved the problem. However, this kind of monkey-patching is unfortunate.
Could you please check my changes. Those patches might not be needed.
The first answer here solved the problem. However, this kind of monkey-patching is unfortunate.
Could you please check my changes. Those patches might not be needed.
they do not solve the problem
Here is how you can try to debug your solution:
RemovedInDjango30Warning
in lib/python3.6/site-packages/django/contrib/staticfiles/templatetags/staticfiles.py
backend
, execute python3 manage.py add_quiz quiz.txt
Then you should get an error
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'django.contrib.staticfiles.templatetags.staticfiles': cannot import name 'RemovedInDjango30Warning'
If you comment out the above import again, it should work. The question is how to avoid this kind of patching.
I guess the issue is with Django versions. The version I run in my local machine is 2.2.11 but when I downloaded the python_lib and pointed to it, the versions shows 3.0.5. I think may be installing the django as per the requirements.txt should fix this issue without patches.
After filling in name and passwords and pressing the button, a network error occurs. Here is the log. The first error is
KeyError: 'django'
.