Relative imports require the 'package' argument

前端 未结 5 1600
太阳男子
太阳男子 2021-02-07 01:44

I want to use Sphinx so it can automatically generate a pydoc for my python code but I\'m getting an error. What an I doing wrong?

conf.py sphinx config

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 01:56

    1. may be the settings you set in uwsgi.py is not correct
    2. the settings path in uwsgi.py(XXXX is in the same dir as uwsgi.py):

      os.environ.setdefault("DJANGO_SETTINGS_MODULE", "XXXX.settings")

提交回复
热议问题