Hello,
Am 07.12.2015 um 13:37 schrieb Dongwon Kang:
I don't know even it's a problem, but anyway, I just updated django 1.8.7 to
django 1.9
and found application isn't working.
I found out django wasn't redirecting not-slashed url. it returns 500 error if
slash
hadn't been at the end of the url. but it works well if it's in Debug mode.
It is the CommonMiddleware that implements a redirect from "no-slash" to "slash/" URLs,
see
<https://docs.djangoproject.com/en/1.8/ref/middleware/#module-django.middleware.common>
for details, so maybe some (other) middleware is involved that causes the trouble?
I'm mentioning this because I recently had a similar problem, where my own middleware
caused problems when another middlewere (in this case, the CommonMiddleware) interfered,
that is, replied to a request, which in turn was unexpected for my custom middleware,
causing it to fail.
but the most thing I suffer from is It works if a url is loaded in debug mode.
for
example, resolving /iidx/test returns 500, but if /iidx/test was loaded
successfully in
debug mode, then the url is called well even if it's release mode.
Maybe you can have an email sent to you if a 500 error occurs, and/or check the error
logs of your webserver, so that you can see the stack trace to see where the error
occurs. You'll need this information in order to fix the problem.
Best regards,
Carsten
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5665CB55.5070208%40cafu.de.
For more options, visit https://groups.google.com/d/optout.