How to fix : Module not found error in Django

preview_player
Показать описание
Module not found error in Django, this video explains how to solve this error in Django.

#modulenotfounderror #Django #pythonerror #Djangoerror #motechapp
Рекомендации по теме
Комментарии
Автор

i know this video might be old, but i'm still having trouble. My project says that it can not find the urls module, but nowhere in installed apps did i ever mention urls module. It worked once, but randomly stopped working, know why?

husk
Автор

Can you please help I have installed django but it is still showing module not found

shramanjain
Автор

My error got resolved! Thanks a ton!!!! All the best for your channel :)

nibeditadatta
Автор

Brother you literally saved me 😭 thank you so much may god bless you

akashrajendraprasad
Автор

you just save my entire day thanks a lot

balarsahil
Автор

What about dj_database_url not found ?

aurelienbaraka
Автор

Thank you brother You saved my time ...

varanasidurgaprasad
Автор

Yes Sir! Am doin well!!!
Hope you too doin well!!!

barakajoseph
Автор

i did that but my problem persisted.What could be the reason sir?

antonykennedymudimba
Автор

module not found : No module name 'mysite'
How to solve pls give me solution brother

itsharsh
Автор

I have problem it say app name module is not available but I didn't put this module in my app

mohammedhammouz
Автор

It is showing cannot import 'polls' Check that 'user.apps.PollsConfig.name' error plz help 🙏🙏

anirudh
Автор

You are very madddd
What kind of video is this
How's this a fix?

uchennafelix
Автор

Made a video for your spelling mistakes. Killing time

ashutosh_aman
Автор

Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 692, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run

File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 475, in check
all_issues = checks.run_checks(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 14, in check_url_config
return check_resolver(resolver)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
return check_method()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 477, in check

File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
return check_method()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 476, in check
for pattern in self.url_patterns:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\functional.py", line 57, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 700, in url_patterns
raise from e
The included URLconf '<module 'home.urls' from 'C:\\django in one does not appear to have any patterns in it. If you see the 'urlpatterns' variable with valid patterns in the file then the issue is probably caused by a circular import.
PS C:\django in one video\hello> python manage.py migrate
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 692, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\django in one video\hello\manage.py", line 22, in <module>
main()
File "C:\django in one video\hello\manage.py", line 18, in main

File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
utility.execute()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 440, in execute

File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 448, in execute
output = self.handle(*args, **options)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\migrate.py", line 97, in handle

File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 475, in check
all_issues = checks.run_checks(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 14, in check_url_config
return check_resolver(resolver)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
return check_method()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 477, in check

File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
return check_method()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 476, in check
for pattern in self.url_patterns:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\functional.py", line 57, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 700, in url_patterns
raise from e
The included URLconf '<module 'home.urls' from 'C:\\django in one does not appear to have any patterns in it. If you see the 'urlpatterns' variable with valid patterns in the file then the issue is probably caused by a circular import.

sajjanvaidya
Автор

still there is error...no module named 'myapp.settings'
Kindly helpp please.

dikshasirvani