Django: AppRegistryNotReady()

后端 未结 4 1089
梦毁少年i
梦毁少年i 2020-11-30 02:15

Python: 2.7; Django: 1.7; Mac 10.9.4

I\'m following the tutorial of Tango with Django

At Chapter 5, the tutorial teaches how to create a population script, w

4条回答
  •  半阙折子戏
    2020-11-30 03:12

    I found this solution, adding

    from django.core.wsgi import get_wsgi_application
    application = get_wsgi_application()
    

    after

    os.environ.setdefault ...
    

提交回复
热议问题