Thanks. This may be it. I'll try it later. But does that also explain why in the dev server the reference is not a string but in the production server it is a string?
On Jan 13, 12:23 pm, Tim Miller <t...@lashni.net> wrote: > Zeynel wrote: > > 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. > > Just a guess but could the code on your production server be missing an > import statement? > > Like... from sw1 import wkw1
-- 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.