Hi, I have made a successful Django app in the past. and decided to start a new one. Except I'm running into a problem. I started a new project to isolate the problem but still am having a problem. Here it is:
I have a link to a different page from 'home' called 'here'. When I click the link I get the right URL but get the home.html view rather than the expected here.html view. Here are the relevant code. #url.py from django.conf.urls.defaults import * from MolProbity_View.views import * from django.conf import settings urlpatterns = patterns('', (r'^', home_view), (r'^here/', here), # Example: ) #views.py from django.shortcuts import render_to_response, HttpResponseRedirect from django.http import HttpResponse from django.template import Context, Template, RequestContext from django.views.decorators.csrf import csrf_protect import os def home_view(request): c = {'we_r_home':'yes'} return render_to_response('home.html', c, context_instance=RequestContext(request)) def here(request): c = {'we_r_home':'no'} return render_to_response('here.html', c, context_instance=RequestContext(request)) #home.html <html> <head> <title>home</titl> </head> <body> <h1>Hello</h1> <p>{{ we_r_home }} <a href="/here/">Link</a> </body> </html> #here <html> <head> <title>here</titl> </head> <body> <h1>Good Bye</h1> <p>{{ we_r_home }} </body> </html> I think I'm not seeing something obvious. Any ideas? Thanks -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.