Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Environment:
- Request Method: POST
- Request URL: http://127.0.0.1:8000/courses/teacher/classroom/
- Django Version: 2.0.1
- Python Version: 3.6.2
- Installed Applications:
- ['django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'courses']
- Installed Middleware:
- ['django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware']
- Traceback:
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\backends\mysql\base.py" in execute
- 71. return self.cursor.execute(query, args)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\MySQLdb\cursors.py" in execute
- 250. self.errorhandler(self, exc, value)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\MySQLdb\connections.py" in defaulterrorhandler
- 50. raise errorvalue
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\MySQLdb\cursors.py" in execute
- 247. res = self._query(query)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\MySQLdb\cursors.py" in _query
- 411. rowcount = self._do_query(q)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\MySQLdb\cursors.py" in _do_query
- 374. db.query(q)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\MySQLdb\connections.py" in query
- 292. _mysql.connection.query(self, query)
- During handling of the above exception ((1048, "Column 'lecture_id' cannot be null")), another exception occurred:
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\core\handlers\exception.py" in inner
- 35. response = get_response(request)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\core\handlers\base.py" in _get_response
- 128. response = self.process_exception_by_middleware(e, request)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\core\handlers\base.py" in _get_response
- 126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\eve\courses\views.py" in classroom
- 97. form2.save()
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\forms\models.py" in save
- 456. self.instance.save()
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\models\base.py" in save
- 729. force_update=force_update, update_fields=update_fields)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\models\base.py" in save_base
- 759. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\models\base.py" in _save_table
- 842. result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\models\base.py" in _do_insert
- 880. using=using, raw=raw)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\models\manager.py" in manager_method
- 82. return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\models\query.py" in _insert
- 1125. return query.get_compiler(using=using).execute_sql(return_id)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\models\sql\compiler.py" in execute_sql
- 1281. cursor.execute(sql, params)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\backends\utils.py" in execute
- 100. return super().execute(sql, params)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\backends\utils.py" in execute
- 68. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\backends\utils.py" in _execute_with_wrappers
- 77. return executor(sql, params, many, context)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\backends\utils.py" in _execute
- 85. return self.cursor.execute(sql, params)
- File "C:\Users\danny\Desktop\Projects\bachelor_thesis\lib\site-packages\django\db\backends\mysql\base.py" in execute
- 76. raise utils.IntegrityError(*tuple(e.args))
- Exception Type: IntegrityError at /courses/teacher/classroom/
- Exception Value: (1048, "Column 'lecture_id' cannot be null")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement