An error with my code

922 views
Skip to first unread message

Kin Zinzombe

unread,
Feb 26, 2022, 10:08:30 AM2/26/22
to django...@googlegroups.com
^[[23~Traceback (most recent call last):
  File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module>
    start(fakepyfile,mainpyfile)
  File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
    exec(open(mainpyfile).read(), __main__.__dict__) File "<string>", line 20, in <module>
  File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/django/urls/conf.py", line 34, in include
    urlconf_module = import_module(urlconf_module)
  File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named ' polls'

[Program finished]




No module named polls ?. 
Screenrecord_2022-02-26-15-52-12.mp4

Eugene TUYIZERE

unread,
Feb 26, 2022, 10:53:52 AM2/26/22
to django...@googlegroups.com
May be polls is the name of your app and you forgot to register it in settings.py

Sent from my iPhone
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEwjECpAYLa-A5cjxFtAcPbcWGg6nbdYc%3DHPJLvGUCm2v%3Db8hQ%40mail.gmail.com.
<Screenrecord_2022-02-26-15-52-12.mp4>

Sebastian Jung

unread,
Feb 26, 2022, 2:15:29 PM2/26/22
to django...@googlegroups.com
Hey,

I thinn you have in your settings.py in installed app a app named polls. Django can not found such a package polls...

Now you must install this package or remove it from settings.py

Regards

--

Dushime Mudahera Richard

unread,
Feb 27, 2022, 6:59:50 PM2/27/22
to django...@googlegroups.com
 hey 
According to your issue you can verify first if the application is  registered in in settings.py then also the import  you may have forgotten to import some modules in yr urls.py 
the better way is share your codes here so that you can get a better help while looking at your codes 
or just in compose message

Best Regards 
Dushime Mudahera Richard
Visit me : https://richard.bluebirdsocceracademy.org/
Web dev and  IT Manager @Bluebird Soccer Academy 
Kyangwali Refugee Settlement  Office
Sports | Mentorship | Leadership | Girl Child Empowerment


--
Reply all
Reply to author
Forward
0 new messages