On Tue, Nov 2, 2010 at 11:08 AM, sami nathan <itssami.g...@gmail.com> wrote: > If i am doing anything wrong forgive me i am newbe > > > MY error is > Exception Type: AttributeError > Exception Value: > > 'str' object has no attribute 'resolve' > > Exception Location: > D:\Python25\lib\site-packages\django\core\urlresolvers.py in resolve, > line 25 > > > My url.py look like this > from django.conf.urls.defaults import * > from it.view import current_datetime > > # Uncomment the next two lines to enable the admin: > from django.contrib import admin > admin.autodiscover() > > urlpatterns = patterns('', > # Example: > (r'^wap/di/sub/$",current_datetime')
This line is wrong ^^^ Quote your strings correctly and you won't get this error. -- 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.