python manage.py runserver error

1,961 views
Skip to first unread message

Jack Bergemann

unread,
Jul 13, 2019, 7:35:31 AM7/13/19
to Django users
(venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "C:\Python37\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 77, in raise_last_exception
    raise _exception[1]
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py", line 337, in execute
    autoreload.check_errors(django.setup)()
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py", line 90, in create
    module = import_module(entry)
  File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'hello_world'

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 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
    super().execute(*args, **options)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
    self.run(**options)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
    autoreload.run_with_reloader(self.inner_run, **options)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 587, in run_with_reloader
    start_django(reloader, main_func, *args, **kwargs)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 572, in start_django
    reloader.run(django_main_thread)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 290, in run
    self.run_loop()
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 296, in run_loop
    next(ticker)
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 336, in tick
    for filepath, mtime in self.snapshot_files():
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 352, in snapshot_files
    for file in self.watched_files():
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 251, in watched_files
    yield from iter_all_python_module_files()
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 103, in iter_all_python_module_files
    return iter_modules_and_files(modules, frozenset(_error_files))
  File "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", line 138, in iter_modules_and_files
    if not path.exists():
  File "C:\Python37\lib\pathlib.py", line 1346, in exists
    self.stat()
  File "C:\Python37\lib\pathlib.py", line 1168, in stat
    return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>'

Joe Reitman

unread,
Jul 13, 2019, 10:24:04 AM7/13/19
to Django users
ModuleNotFoundError: No module named 'hello_world'

This is a big clue. 

Charlotte Wood

unread,
Jul 13, 2019, 10:33:46 AM7/13/19
to django...@googlegroups.com
Have you listed hello_world in your apps in settings.py?

Is it something that you pip install?

Is it the name of a view that you have imported at the top but maybe deleted?

Now, sometimes heroku will ignore things but I believe this is just your local server to which you are referring?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/af352a9f-08f9-482f-b94c-d525576b5a05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amitesh Sahay

unread,
Jul 14, 2019, 4:36:17 AM7/14/19
to django...@googlegroups.com
Can you check if you have entered  'hello_world' in your app list in settings.py?

Regards,
Amitesh Sahay


Thomas Furtado

unread,
Jun 18, 2020, 6:15:36 PM6/18/20
to Django users
Hi, I've seen you sent this last year and I'm having the same error message at my pycharm... Did you solve this?? could you help me with this please??

chaitanya orakala

unread,
Jun 18, 2020, 9:03:49 PM6/18/20
to django...@googlegroups.com
Hi Thomas,
Please run the following commands to solve this problem, before running the server.

python manage.py makemigrations
python manage.py migrate

and then command 
python manage.py runserver

Hope this helps. Let me know if you have any questions

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Thomas Furtado

unread,
Jun 18, 2020, 9:07:20 PM6/18/20
to django...@googlegroups.com
Hii, thanks for answering but it didn't work
Now it showed: no module named 'django.contrib.statics'

You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/TGCTXTFbHFI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcTzRYV_Ws-VgtK3dTkauYbtm7O2FKH1AJdewfDp0%2BPOuKOPw%40mail.gmail.com.

Utsab Bashyal

unread,
Jun 18, 2020, 9:45:47 PM6/18/20
to django...@googlegroups.com
enter inside your project directory   using command cd project_name in termina and run manage.py runserver


Tanisha Jain

unread,
Jun 19, 2020, 7:38:53 AM6/19/20
to django...@googlegroups.com
still the problem persists.

Screenshot (5).png

RANGA BHARATH JINKA

unread,
Jun 19, 2020, 7:57:58 AM6/19/20
to django...@googlegroups.com
Hi,
    You have to go into your django project folder where manage.py file is located. Test with using "ls" inside your command prompt. All the best.



--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

DHRUVA

unread,
Jun 19, 2020, 8:02:09 AM6/19/20
to django...@googlegroups.com
Just try adding appname into the installed Apps in the Settings file

Archit Keshri

unread,
Jun 19, 2020, 9:23:49 AM6/19/20
to django...@googlegroups.com

Robert Rajendra

unread,
Jun 19, 2020, 11:43:22 AM6/19/20
to django...@googlegroups.com
ModuleNotFoundError: No module named 'hello_world'

This is your error, please make sure that hello_world exists and imported properly



--

Robert Rajendra

Associate Network/Server Support Engineer

ITH

P: +91 863.087.3094

W: www.ITHands.com

Reply all
Reply to author
Forward
0 new messages