Error to run manage.py. I'm trying to run manage.py server but it hit some error! I've just trying to run a timetable generator
PS C:\Users\user\Desktop\TimetableGenerationSystem-master\projttgs> python manage.py runserver Watching for file changes with StatReloader Performing system checks...
Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\Python310\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper fn(*args, **kwargs) File "C:\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run self.check(display_num_errors=True) File "C:\Python310\lib\site-packages\django\core\management\base.py", line 546, in check raise SystemCheckError(msg) django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
ERRORS: ?: (urls.E009) Your URL pattern 'timetable_generation/render/pdf' [name='pdf'] has an invalid view, pass Pdf.as_view() instead of Pdf.
WARNINGS: account.Profile: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AccountConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.model s.BigAutoField'. ttgen.Department: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the TtgenConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models. BigAutoField'. ttgen.Instructor: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the TtgenConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models. BigAutoField'. ttgen.Room: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the TtgenConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models. BigAutoField'.
System check identified 5 issues (0 silenced). C:\Users\Salam\Downloads\Compressed\TimetableGenerationSystem-master\projttgs\account\urls.py changed, reloading. Watching for file changes with StatReloader Performing system checks...
Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\Python310\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper fn(*args, **kwargs) File "C:\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run self.check(display_num_errors=True) File "C:\Python310\lib\site-packages\django\core\management\base.py", line 546, in check raise SystemCheckError(msg) django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
ERRORS: ?: (urls.E009) Your URL pattern 'timetable_generation/render/pdf' [name='pdf'] has an invalid view, pass Pdf.as_view() instead of Pdf.
WARNINGS: account.Profile: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AccountConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.model s.BigAutoField'. ttgen.Department: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the TtgenConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models. BigAutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the TtgenConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models. ttgen.Room: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the TtgenConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models. BigAutoField'.
There is my projects :https://github.com/abhayshah0305/TimetableGenerationSystem