Hi, My name is John and I'm running Django1.1.1 on XAMPP for Windows with Apache 2.2.12, Python 2.5.2,mod_python3.3.1,using the default sqlite3 database for the examples. I am working through the Apress The Definitve Guide To Django Web Development Done Right 2nd Edition between pg. 129 and the end of the chapter 7.
Basically, I can get either my contact or my book search to work, but not both at the same time. The views are in different directories and don't include or import to each other. I first got the contact working in the books view in mysite/books/views.py, then moved it to its own folder in mysite/contact/views as suggested, once I did that I thought the conflict in my urls.py folder was due to views identifier conflicting as they had the same name for the views file but not the completely specific pathway 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/$', views.contact), <-- (r'^contact/$', views.contact), <--- (r'^search-form/$', views.search_form), <---- (r'^search/$', views.search), <--- so i changed it to this: 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/$', contact.views.contact), (r'^contact/$', contact.views.contact), (r'^search-form/$', books.views.search_form), (r'^search/$', books.views.search), now all of my web views are nuked because "contact is not defined", how do I accurately assign the right extended path to the required classes? Any help is appreciated, Thanks. -- 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.