I am having trouble changing the url.py within Django

Tags: ,

Hello I am needing assistance. I am currently doing within url.py for Django:

urlpatterns = [
path(‘cookies/’, admin.site.urls),

This is being done from urls.py in atom and when I look at the terminal it is not able to GET the new url. When I have I am still directed to a not found page. Anyone please help I am currently using Ubuntu Linux.


It looks like you are changing an urls.py from your app not from your main project’s urls.py.

You generated this file byyourself, right?

If you want to change your admin path, go to your main projects’ urls.py.It is in the same folder as settings.py.

If you cannot find it, just search for admin.site.urls in your text editor.

Source: stackoverflow