Hi, I feel there are some places which need to modify: 1. urlpatterns should be (r"^wap/di/sub/$", current_datetime), 2. It seems that the view function is endless loop...
2010/10/28 sami nathan <itssami.g...@gmail.com> > My occured Error is > > Exception Value: > > 'str' object has no attribute 'resolve' > > Exception Location: > C:\Python25\Lib\site-packages\django\core\urlresolvers.py in > resolve, > line 217 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > MY URLS.PY LOOKS LIKE THIS > from django.conf.urls.defaults import * > from flip.view import current_datetime > > urlpatterns = ('', > # Example: > > (r"^wap/di/sub",current_datetime) > > ) > # Uncomment the admin/doc line below to enable admin documentation: > # (r'^admin/doc/', include('django.contrib.admindocs.urls')), > # Uncomment the next line to enable the admin: > # (r'^admin/', include(admin.site.urls)) > My view .py Looks like this > from django.http import * > import urllib > > def current_datetime(request): > word = request.GET['word'] > message = urllib.urlopen(' > http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit<http://m.broov.com/wap/di/sub?word=%27+word+%27&type=00submit=Submit> > ',) > return HttpResponse (message) > > Please help me i dont na what happens it was running succesfully but > noow its not > > -- > 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<django-users%2bunsubscr...@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-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.