I created a view function for a search form and put it in my views.py like this:
(r'^search-form/$', views.search_form), This worked fine in the development server. When I did the same in the production server I got an 500 server error. Then I realized that the reference to view should be string, like this: (r'^search-form/$', 'sw1.wkw1.views.search_form'), Can you help me understand the logic here? Which one is the correct way? 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.