The problem is solved. Thanks.
On Mon, Jan 7, 2013 at 10:02 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Monday, 7 January 2013 13:54:59 UTC, jianhui chen wrote: > >> Hi all. >> I use djangoappengine http://www.allbuttonspressed.** >> com/projects/djangoappengine#**zip-packages<http://www.allbuttonspressed.com/projects/djangoappengine#zip-packages>to >> manage google app engine. >> I test a very simple project: >> url.py: >> from django.conf.urls.defaults import * >> from shape_practice.views import introduction >> handler500 = 'djangotoolbox.errorviews.**server_error' >> >> urlpatterns = patterns('', >> ('^_ah/warmup$', 'djangoappengine.views.warmup'**), >> (r'^introduction/$', introduction), >> ) >> >> views.py: >> >> from django.conf import settings >> from django.http import HttpResponse >> from django.utils.importlib import import_module >> from django.template import loader, Context, RequestContext >> >> def introduction(request): >> t = loader.get_template('**introduction.html') >> c = Context({}) >> return HttpResponse(t.render(c)) >> >> but when I type >> http://127.0.0.1:8000/**introduction/<http://127.0.0.1:8000/introduction/>. >> The browser doesn't show "introduction.html", but another "html", let's >> say A.html. But A.html can't be found in the urlpatterns. Anywhere else can >> set .html file? >> Another strange thing is that: in the url.py file, I can use "from >> shape_practice.views import introduction", but I can't use >> shape_practice.views.**introduction which has an "shape_practice >> undefined error" >> >> Thanks. >> >> >> > You should ask App Engine questions on the App Engine users group. > Presumably you have something in your app.yaml file which is sending the > user to static page rather than the Django app. > If you don't import shape_practice, you can't reference it. > -- > DR. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/GoDD8oHllVEJ. > To post to this group, send email to django-users@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. > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.