Thanks but I'd already tried it. I don't understand why in the production server is not added the preceeding slash to the url. My urls.py is as follows: urlpatterns = patterns('candidateTool.assessmentSystem.views', (r'^$', 'index'), (r'^enter/$', 'enter'), (r'^main/$', 'main'), (r'^exam/(?P<exam_id>\d+)/$', 'exam'), (r'^myexam/(?P<exam_id>\d+)/$', 'my_exam'), (r'^solved/(?P<exam_id>\d+)/$', 'solved_exam'), (r'^report/$', 'report'), (r'^exams/$', 'exams'), (r'^admin/(.*)', admin.site.root), )
In the index page is called /enter and I've also tried /enter/ but neither work :( On Nov 4, 7:07 pm, Xiong Chiamiov <[EMAIL PROTECTED]> wrote: > If it works in one environment, but not another, then it might have > something to do with your settings files. When you create your links, > are you having the href be "/enter" or "/enter/"? I think the > middleware class you're reading about is for trailing slashes, not > preceeding ones. > > On Nov 4, 9:35 am, Javi <[EMAIL PROTECTED]> wrote: > > > Hello everybody! > > I'm using django 1.0-1 version and Apache as a server web. In the dev > > server everything works fine but in the production server I get the > > following error when I ask for a url: > > > NoneType' object is not iterable > > > Request Method: POST > > Request URL: http://localhostenter/ > > Exception Type: TypeError > > Exception Value: > > > 'NoneType' object is not iterable > > > Exception Location: /var/lib/python-support/python2.5/django/core/ > > handlers/base.py in get_response, line 77 > > Python Executable: /usr/bin/python > > Python Version: 2.5.2 > > > I think it's because the "/" after "localhost" is not added, actually > > the url in the browser ishttp://localhost/enter/ > > > I've been reading about the problem and someone speaks about creating > > a middleware class... I don't know... > > > Is there another simpler way to sort the problem out? > > > Thanks in advance. > > > Greetings. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---