I needed single quotes about pathway in urls.py like so, Thanks:

from django.conf.urls.defaults import *
from mysite import views
from mysite.views import hello, current_datetime, hours_ahead
from mysite.books import views
from mysite.contact import views

#, my_homepage_view
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
   (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    #20 Uncomment the next line to enable the admin:
)
urlpatterns = patterns('',
(r'^hello/$', hello),
(r'^time/$', current_datetime),
(r'^time/plus/(\d{1,2})/$', hours_ahead),
(r'^admin/', include(admin.site.urls)),
(r'^contact/thanks/$', 'mysite.contact.views.contact'),
(r'^contact/$', 'mysite.contact.views.contact'),
(r'^search-form/$', 'mysite.books.views.search_form'),
(r'^search/$', 'mysite.books.views.search'),
)

--

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.


Reply via email to