how to change urls for model in admin?

5 views
Skip to first unread message

akonsu

unread,
May 4, 2010, 4:23:55 AM5/4/10
to Django users
hello,

by default an admin url for a model looks like this:

http://<host>/admin/<application-name>/<model-name>/...

is there a way to change it? for different models i need to have
different url structure. say, i want to replace "/admin/<application-
name>" with something else.

ModelAdmin.get_urls()? the documentation is not very helpful for me. i
do not understand how i can use get_urls(). in particular, i do not
have any custom views in my admin. and the docs only explain how to
use get_urls() to hook up views.

thanks for any help
konstantin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Wayne

unread,
May 4, 2010, 9:08:58 PM5/4/10
to Django users
Hi,

I am looking for the answer as well. I came across this tutorial with
some sample code. http://lincolnloop.com/assets/Customizing_the_Django_Admin-EuroDjangoCon09.pdf
page 59.

However, I don't want to create new view, but just modify the display
urls. So if somebody could give any hint, that would be great.

Thanks,

Wayne
Reply all
Reply to author
Forward
0 new messages