Nahidujjaman Hridoy
Nahidujjaman Hridoy

Reputation: 2227

Difference between shortcut reverse and url reverse in Django

I am learning django. And recently I have came upon something that I don't understand.

There are two different version of reverse module that can be imported.

One is:

from django.shortcuts import reverse

Another is:

from django.urls import reverse

What are the actual difference between them? Can someone explain to me in an easy way?

Upvotes: 1

Views: 456

Answers (1)

hamzeh_pm
hamzeh_pm

Reputation: 317

there is no difference they put it to packages, the original is in urls but because it use so much it is on shortcuts too, think of it like windows shortcuts and original file

Upvotes: 3

Related Questions