[Django]-Django URLResolver error

0👍

I think you have not added a url pattern to route you to 127.0.0.1:8000/foo

In the urls.py in project folder add the following

url(r'foo/$', view_name, name='foo'),

This will add a route to /foo/

-2👍

(<URLResolver <module ‘calc.urls’ from ‘C:\Users\Dell\projects\telusko\calc\urls.py’> (None:None) ”>,)

Leave a comment