#31408: Django_runserver error
-------------------------------------+-------------------------------------
Reporter: | Owner: (none)
MukeshRaikar |
Type: Bug | Status: new
Component: Error | Version: 3.0
reporting | Keywords: reunserver error,
Severity: Normal | appconfig, template, attribute
Triage Stage: | error, attribute,
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
" I am getting this error when i run the server after trying to create a
template for the web and connecting that with heml. I added my apps.py
config name in the settings.py -> INSTALLED APPS[ ...... ]
Want to knwo how to fix this. I amusing python v3.8.1 with latest djago
version
Below is the error. I a not trying to use bootstrap.But creating a html
and connecting to config file.
(venv) D:\Program Files\my_project\djangotest>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "D:\Program Files\my_project\venv\lib\site-
packages\django\apps\config.py
", line 118, in create
cls = getattr(mod, cls_name)
AttributeError: module 'django.apps' has no attribute 'DjangoAppConfig'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ROY\AppData\Local\Programs\Python\Python38\lib\thread
ing.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\ROY\AppData\Local\Programs\Python\Python38\lib\thread
ing.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 53, in wrapper
fn(*args, **kwargs)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 76, in raise_last_exception
raise _exception[1]
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\__init__.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 53, in wrapper
fn(*args, **kwargs)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\__init__.py",
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\apps\registry.
py", line 91, in populate
app_config = AppConfig.create(entry)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\apps\config.py
", line 136, in create
import_module(entry)
File "C:\Users\ROY\AppData\Local\Programs\Python\Python38\lib\import
lib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in
_find_and_load_unlocked
ModuleNotFoundError: No module named 'django.apps.DjangoAppConfig'
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\__init__.py", line 401, in execute_from_command_line
utility.execute()
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\commands\runserver.py", line 60, in execute
super().execute(*args, **options)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\base.py", line 369, in execute
output = self.handle(*args, **options)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\commands\runserver.py", line 95, in handle
self.run(**options)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\core\managemen
t\commands\runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 584, in start_django
reloader.run(django_main_thread)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 299, in run
self.run_loop()
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 305, in run_loop
next(ticker)
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 361, in snapshot_files
for file in self.watched_files():
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 105, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "D:\Program Files\my_project\venv\lib\site-
packages\django\utils\autorelo
ad.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "C:\Users\ROY\AppData\Local\Programs\Python\Python38\lib\pathli
b.py", line 1174, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\ROY\AppData\Local\Programs\Python\Python38\lib\pathli
b.py", line 200, in resolve
return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label
syntax is
incorrect: '<frozen importlib._bootstrap>'
--
Ticket URL: <https://code.djangoproject.com/ticket/31408>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.37d16190fb539ad872214b481c10eba2%40djangoproject.com.