Rename MIDDLEWARE_CLASSES to MIDDLEWARE in settings to see if that changes anything. If not, remove one by one (except static). There are some changes to the static files middleware [1], but I can't really relate that to your error.
Is there anything in your project requirements that also uses six? There's no diff between 1.10.x and 1.11.x on six.py, but this code looks like a possible root cause: # Here's some real nastiness: Another "instance" of the six module might # be floating around. Therefore, we can't use isinstance() to check for # the six meta path importer, since the other six instance will have # inserted an importer with different class. if (type(importer).__name__ == "_SixMetaPathImporter" and importer.name == __name__): del sys.meta_path[i] break [1] https://docs.djangoproject.com/en/1.11/releases/1.11/#django-contrib-staticfiles On Mon, Sep 4, 2017 at 3:32 PM, Derek Zeng <zen1...@gmail.com> wrote: > If I turn off debug mode, it gives me 500 error and showing the same stack > trace in the console. > > I also tried 1.11.4, still the same error. > > On Mon, Sep 4, 2017 at 2:33 AM, Raffaele Salmaso <raffa...@salmaso.org> > wrote: >> >> On Sun, Sep 3, 2017 at 4:26 PM, Derek Zeng <zen1...@gmail.com> wrote: >>> >>> When I use django==1.10.7, this does not happen. >>> When I use django==1.11a1 this happens. >> >> Why 1.11a1? Current is 1.11.4 >> >> -- >> | Raffaele Salmaso >> | https://salmaso.org >> | https://bitbucket.org/rsalmaso >> | https://github.com/rsalmaso >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Django users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/django-users/49blpAjNxYc/unsubscribe. >> To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CABgH4Js1z0e7yypGD4f7z_eKbMrYWQEMT9viCSCshA1ROhMA_A%40mail.gmail.com. >> >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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 https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAAzyz%2BG2MjxRv001kjq%3DpkpzReVAHw03Jv9FW6Ry7sHPwKMsSQ%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Melvyn Sopacua -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Bgw1GV3fMt5w4wUjOSviZzkdaHRU%2BFj4fHJqRSJnMGpcdLUNA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.