Django urls.py and views.py behaviour -
I'm currently experimenting with Django and creating apps following the tutorials on the official website. So my urls.py looks like: urlpatterns = patterns('', (r'^/$','ulogin.views.index'), #why doesn't this work? (r'^ucode/$', 'ulogin.views.index'), (r'^ucode/(\d+)/$', 'ulogin.views.index'), ) And my views.py looks like: def index(request): return HttpResponse("Hello, world. You're at the poll index.") def redirect_to_index(request): return HttpResponseRedirect('/ucode/') When I run the server to check the test url, http://127.0.0.1:8000/ucode displays "Hello, world...etc" correctly, and