Url mapping error.

30 views
Skip to first unread message

Abdulrahman Hayat

unread,
Jul 19, 2022, 11:32:59 AM7/19/22
to Django users
After writing basic script and did all the necessary url mappings, i tried running manage.py and i keep on getting "The included URLconf '<module 'calc.urls' from '/home/kali/django-projects/testpage/calc/urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import."
NB my project name is CALC.
Screenshot_2022-07-19_09-45-03.pngScreenshot_2022-07-19_09-45-59.png

THANKS TEAM..

Wazed Khan

unread,
Jul 19, 2022, 12:06:26 PM7/19/22
to django...@googlegroups.com
Did you registered your app in instead app in project setting 

--
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/49532b32-c8b2-4629-80cc-2d7451275a24n%40googlegroups.com.

Wazed Khan

unread,
Jul 19, 2022, 12:06:40 PM7/19/22
to django...@googlegroups.com
*Installed apps

Abdul Qoyyuum

unread,
Jul 19, 2022, 11:00:50 PM7/19/22
to django...@googlegroups.com
Can you share your urls.py?

--
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/49532b32-c8b2-4629-80cc-2d7451275a24n%40googlegroups.com.


--
Abdul Qoyyuum Bin Haji Abdul Kadir

Kelvin McCarty

unread,
Jul 20, 2022, 11:12:30 AM7/20/22
to django...@googlegroups.com
I’ve gotten through the basics of Data analysis and ML but yet to use Django but very much interested. Can somehow give me a good pointer or starting point on how to use and further utilize Django under python…. Many Thanks! 

From: django...@googlegroups.com <django...@googlegroups.com> on behalf of Abdul Qoyyuum <aqoy...@cardaccess.com.au>
Sent: Wednesday, July 20, 2022 3:59:55 AM
To: django...@googlegroups.com <django...@googlegroups.com>
Subject: Re: Url mapping error.
 

Lakshyaraj Dash

unread,
Jul 20, 2022, 12:15:30 PM7/20/22
to django...@googlegroups.com

Lakshyaraj Dash

unread,
Jul 20, 2022, 12:18:48 PM7/20/22
to django...@googlegroups.com
Dear Abdul Rehman,
Simple thing is to wrapup all of your urls inside
url_patterns = [
    path(' ', views.index, name='index')
    # other url confs here...
]

--
Reply all
Reply to author
Forward
0 new messages