urlpatterns = patterns('',
#(r'admin/main/report/', main_page_redirect),
(r'^admin/', include(admin.site.urls)),
(r'^', main_page_redirect),
)
def main_page_redirect(request):
return HttpResponseRedirect('/admin/main/report/?e=+2')
then when i try to go to /localhost then it becomes a infinite loop. does anyone knows how to slove it?