Reputation:
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
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