error running server django

PS C:\Django_Crud\my_django_app> python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File “C:\Program Files\Python312\Lib\threading.py”, line 1073, in _bootstrap_inner
self.run()
File “C:\Program Files\Python312\Lib\threading.py”, line 1010, in run
self._target(*self.args, **self.kwargs)
File “C:\Django_Crud\env\Lib\site-packages\django\utils\autoreload.py”, line 64, in wrapper
fn(*args, **kwargs)
File “C:\Django_Crud\env\Lib\site-packages\django\core\management\commands\runserver.py”, line 126, in inner_run
autoreload.raise_last_exception()
File “C:\Django_Crud\env\Lib\site-packages\django\utils\autoreload.py”, line 87, in raise_last_exception
raise exception[1]
File "C:\Django_Crud\env\Lib\site-packages\django\core\management_init
.py", line 394, in execute
autoreload.check_errors(django.setup)()
File “C:\Django_Crud\env\Lib\site-packages\django\utils\autoreload.py”, line 64, in wrapper
fn(*args, **kwargs)
File "C:\Django_Crud\env\Lib\site-packages\django_init
.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “C:\Django_Crud\env\Lib\site-packages\django\apps\registry.py”, line 116, in populate
app_config.import_models()
File “C:\Django_Crud\env\Lib\site-packages\django\apps\config.py”, line 269, in import_models
self.models_module = import_module(models_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\importlib_init
.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1331, in _find_and_load_unlocked
File “”, line 935, in _load_unlocked
File “”, line 991, in exec_module
File “”, line 1129, in get_code
File “”, line 1059, in source_to_code
File “”, line 488, in _call_with_frames_removed
SyntaxError: source code string cannot contain null bytes

Welcome @0pangithub !

My first course of action any time I get a traceback is to take the message at face value.

You’re getting:

I’d start by checking all the files in the project for null characters.