Exactly. You answered your question yourself. Just override the
existing urls putting them above the (r'^admin/',
include('django.contrib.admin.urls')).
For example:
(r'^admin/yourapp/yourmodel/add/$', 'yourproject.yourapp.views.yourmodel_add'),
(r'^admin/yourapp/yourmodel/(?P<object_id>[0-9]+)/$',
'yourproject.yourapp.views.yourmodel_change'),
#...
(r'^admin/', include('django.contrib.admin.urls')),
Regards,
Aidas Bendoraitis aka Archatas
On 12/20/06, Rob Slotboom <[EMAIL PROTECTED]> wrote:
On 20 dec, 10:54, "patrick k." <[EMAIL PROTECTED]> wrote:
> do it like in any other application:
> custom view, custom template, change urls
Hi Patrick,
That's exactely what I wanted to know for one exception.
How to call the custom view when using admin.?
By overriding the 'default' call:
(r'^admin/mine/', include('mysite.admin.urls')),
(r'^admin/', include('django.contrib.admin.urls')),
Rob
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---