ImproperlyConfigured: The included urlconf .urls doesn't have any patterns in it

后端 未结 5 1595
北恋
北恋 2020-12-02 12:36

I have a django (1.6.x) project that runs fine with the dev server, but is failing under Apache2 (2.2.22.1) and mod_wsgi (3.3-4) on Ubuntu 12.04.3 with the error

Imp

5条回答
  •  感情败类
    2020-12-02 13:23

    I've suffered a similar problem after upgrading from django 1.5 to 1.6. I'm not sure if my experience is the same as yours.

    First, can you scroll up the errors, and check the admin.autodiscover() is what's generating the problem? Alternatively comment out this line and see if a page will load.

    The problem I found was related to wsgi.py. Is it possible for you to post this file?

提交回复
热议问题