Closed itinerary-hui closed 3 years ago
I cannot sign up a student
Share Your Error Log
Internal Server Error: /do_signup_student
Traceback (most recent call last):
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
response = wrapped_callback(request, callback_args, callback_kwargs)
File "C:\Users\hui\Desktop\student_management_system_part_11\student_management_app\views.py", line 152, in do_signup_student
first_name=first_name, user_type=3)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\contrib\auth\models.py", line 147, in create_user
return self._create_user(username, email, password, extra_fields)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\contrib\auth\models.py", line 141, in _create_user
user.save(using=self._db)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\contrib\auth\base_user.py", line 66, in save
super().save(args, *kwargs)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\db\models\base.py", line 746, in save
force_update=force_update, update_fields=update_fields)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\db\models\base.py", line 795, in save_base
update_fields=update_fields, raw=raw, using=using,
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\dispatch\dispatcher.py", line 175, in send
for receiver in self._live_receivers(sender)
File "D:\Anaconda3\envs\stuM\lib\site-packages\django\dispatch\dispatcher.py", line 175, in
You need to add session year first in session year table
Then use one default id for setting session year in models.py receiver code for students.object.create() here you need to pass the one default it of session year model object which exists in your database
after extract zip file this error was come ...... Can solve this error
after extract zip file this error was come ...... Can solve this error
I solve this by using command pip install requests ...... then after that i am succsessfully run that on cmd then i am goes on login page but it's showing this...............OperationalError at /
no such table: django_session
which kind of profile_pic?