I want to use {% url %} to point into portions of the admin site(and 
change the default url structure).  I hacked this generally 
unfullfilling but working version with old admin.

model = dict(app_label="specials", model_name="adspecial")
urlpatterns += patterns("django.contrib.admin.views.main",
     url(r"^$",                              "change_list",
         name="ts_admin_special_list",      kwargs=model),
     url(r"^add/$",                          "add_stage",
         name="ts_admin_special_add",       kwargs=model),
     url(r"^(?P<object_id>\d+)/$",           "change_stage",
         name="ts_admin_special_edit",      kwargs=model),
     ...
)


Not sure how to do this with newforms. I got this to work, but I really 
don't want to make wrappers to get the dynamic urls to work.

    url(r"^$",                             site.root, name="ts_admin", 
kwargs={"url":"specials/adspecial"}),


Actually, I'd really love to learn a cleaner way to do this.  Main goals 
are to have a custom admin "index" page, and not hard code urls.



Thanks,
-- 
Norman J. Harman Jr.
Senior Web Specialist, Austin American-Statesman
___________________________________________________________________________
You've got fun!  Check out Austin360.com for all the entertainment
info you need to live it up in the big city!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to