user4079217
user4079217

Reputation:

how to change django model admin url?

I just need to change

http://localhost:8000/admin/song_management/album/

to

http://localhost:8000/admin/song-management/album/

Note:

I am using ModelAdmin & Changed admin template completely ( ex; Used hardcoded url mostly )

Upvotes: 0

Views: 1304

Answers (1)

Bernhard Vallant
Bernhard Vallant

Reputation: 50776

Django's ModelAdmin uses the model's app_label per default to generate the urls. The only way to bypass this would be to subclass AdminSite and change the relevant parts.

Upvotes: 2

Related Questions